#tyndur · 2009-08-16

25 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen

  1. taljethGuten Morgen
  2. pcmattmanHi taljeth
  3. taljethwtf is this guy doing?
  4. taljethAccording to the logs he joined and left at least ten times now
  5. FreakyPenguinGood morning
  6. taljethMoin FreakyPenguin
  7. taljethWhat's your patch series doing? My mailbox is empty ;-)
  8. FreakyPenguintaljeth: http://famkaufmann.info/~toni/cdi_config.h
  9. taljethWe also need some option type where you can choose from a list of predefined values
  10. FreakyPenguinI feared you'd propose that *g*
  11. taljethHm, and how do I use this? NULL-terminated array of struct cdi_confvar?
  12. FreakyPenguinNo. How would you acces the right option from your code, to get a specific value?
  13. FreakyPenguinOf course I could change the value members to int* and char**...
  14. taljethWell, there are two parts. First defining the allowed options and later retrieving the actual values.
  15. FreakyPenguinAt the moment you just have to register them one by oue
  16. FreakyPenguin*one
  17. taljethYeah, just saw that. Kind of ugly, imho.
  18. taljethThe goal should be to have one initialized array of allowed options and pass it to CDI in a single function call
  19. taljethSomething like this: http://git.qemu.org/qemu.git/tree/block/qcow2.c#n959
  20. taljethOt this: http://git.qemu.org/qemu.git/tree/vl.c#n1800
  21. taljethLooks quite similar, but it wouldn't be qemu if there weren't two different sets of functions for it
  22. FreakyPenguin*g*
  23. taljethHm, can you specify the default value like this in your draft? Accessing structs in a union in a struct initializer... ;-)
  24. FreakyPenguinWhy not? *g*
  25. FreakyPenguinafk, eating breakfast