Somewhat of a GQuark



This might be a little off topic but what the hay,

    I'm looking for some kind of api that will allow me to make
"something like a GQuark" but that will stay consistant across
applications. I'm sure this has been done before but I dont want
to use a huge bloated database mainframe kinda thingy.

Hmmm,
    quarks in glib are implemented through hash tables and a
static array, would it be feasible to acomplish this, say using
file accesses or via shared memory segments ? (I'm sure that
an array of strings in a shared memory segment will work, but I'm
not sure about the hash, and the lookup using strcmp() would kind
of defeat the purpose).

I'm really a dunce when it comes to databases, but how hard can it be
to implement a hash-map in a flat file ?

Cheers,
                                         -Tristan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]