Code

utils llist: Let llist_get() increment the reference count.
[sysdb.git] / src / frontend / connection-private.h
index 6cf7395b7c122b0c5c329c622be47745f71f5bb3..82cece90f00cdae17c59557f5f651979fb1c6013 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * SysDB - src/include/frontend/connection-private.h
+ * SysDB - src/frontend/connection-private.h
  * Copyright (C) 2013 Sebastian 'tokkee' Harl <sh@tokkee.org>
  * All rights reserved.
  *
 #ifndef SDB_FRONTEND_CONNECTION_PRIVATE_H
 #define SDB_FRONTEND_CONNECTION_PRIVATE_H 1
 
+#include "frontend/connection.h"
+
 #include "core/object.h"
+#include "core/store.h"
 #include "utils/strbuf.h"
-#include "frontend/connection.h"
 
 #include <inttypes.h>
 #include <arpa/inet.h>
@@ -67,6 +69,16 @@ struct sdb_conn {
 };
 #define CONN(obj) ((sdb_conn_t *)(obj))
 
+/*
+ * node types
+ */
+
+typedef struct {
+       sdb_conn_node_t super;
+       sdb_store_matcher_t *matcher;
+} conn_node_matcher_t;
+#define CONN_MATCHER(obj) ((conn_node_matcher_t *)(obj))
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif