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