diff options
author | Detlev Casanova <detlev.casanova@gmail.com> | 2010-07-09 15:31:23 +0200 |
---|---|---|
committer | Detlev Casanova <detlev.casanova@gmail.com> | 2010-07-09 15:31:23 +0200 |
commit | 650c79cb75b4b09257ce0e489c5e20707d8758e0 (patch) | |
tree | ac82519281043d6bbbf843aee9e99d81ee9b037d /src/dict.h | |
parent | 593766766d7d892b469acda29bdb8d848a68dd3b (diff) | |
download | layman-650c79cb75b4b09257ce0e489c5e20707d8758e0.tar.gz layman-650c79cb75b4b09257ce0e489c5e20707d8758e0.tar.bz2 layman-650c79cb75b4b09257ce0e489c5e20707d8758e0.zip |
Add a C <-> Python Dict class and fix DbBase to take a Dict fo it's
config argument
Diffstat (limited to 'src/dict.h')
-rw-r--r-- | src/dict.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dict.h b/src/dict.h new file mode 100644 index 0000000..844963c --- /dev/null +++ b/src/dict.h @@ -0,0 +1,14 @@ +#ifndef DICT_H +#define DICT_H + +#include <Python.h> + +typedef struct Dict Dict; + +Dict* dictCreate(); +//char* tableFind(Dict *table, char* key); +void dictFree(Dict *t, int); +void dictInsert(Dict* list, const char* key, const char* value); +unsigned int dictCount(Dict *table); +PyObject* dictToPyDict(Dict *dict); +#endif |