src/server/plugins/postgresql/config.h

changeset 415
d938228c382e
parent 374
77506ec632a4
equal deleted inserted replaced
414:99a34860c105 415:d938228c382e
38 38
39 #include <inttypes.h> 39 #include <inttypes.h>
40 40
41 #include <libpq-fe.h> 41 #include <libpq-fe.h>
42 42
43 #include <ucx/string.h> 43 #include <cx/string.h>
44 #include <cx/linked_list.h>
45 #include <cx/hash_map.h>
46 #include <cx/compare.h>
44 47
45 #ifdef __cplusplus 48 #ifdef __cplusplus
46 extern "C" { 49 extern "C" {
47 #endif 50 #endif
48 51
51 WSBool isused; 54 WSBool isused;
52 } PgExtTable; 55 } PgExtTable;
53 56
54 typedef struct PgRepository { 57 typedef struct PgRepository {
55 int64_t root_resource_id; 58 int64_t root_resource_id;
56 sstr_t resourcepool; 59 cxmutstr resourcepool;
57 PgExtTable *tables; 60 PgExtTable *tables;
58 size_t ntables; 61 size_t ntables;
59 UcxMap *prop_ext; 62 CxMap *prop_ext;
60 } PgRepository; 63 } PgRepository;
61 64
62 typedef struct { 65 typedef struct {
63 char *column; 66 char *column;
64 char *ns; 67 char *ns;
65 char *name; 68 char *name;
66 int tableindex; 69 int tableindex;
67 } PgPropertyStoreExt; 70 } PgPropertyStoreExt;
68 71
69 typedef struct { 72 typedef struct {
70 UcxMap *table_lookup; 73 CxMap *table_lookup;
71 UcxList *tables; 74 CxList *tables;
72 } PgExtParser; 75 } PgExtParser;
73 76
74 int pg_lookup_root(ResourceData *res, const char *rootnode, int64_t *rootid); 77 int pg_lookup_root(ResourceData *res, const char *rootnode, int64_t *rootid);
75 78
76 PgRepository* pg_init_repo(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); 79 PgRepository* pg_init_repo(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config);

mercurial