Code

plugin: Make sdb_plugin_info_t public.
[sysdb.git] / src / frontend / connection-private.h
index f2d85f2ccdfd177e461032421a90eb181f870fdc..ae9cbbc91ba0cfa2dd532cb55795de95164a96fe 100644 (file)
@@ -64,6 +64,10 @@ struct sdb_conn {
        uint32_t cmd;
        uint32_t cmd_len;
 
+       /* amount of data to skip, e.g., after receiving invalid commands; if this
+        * is non-zero, the 'skip_len' first bytes of 'buf' are invalid */
+       size_t skip_len;
+
        sdb_strbuf_t *errbuf;
 
        /* user information */
@@ -103,12 +107,19 @@ conn_fetch_destroy(sdb_object_t *obj)
                free(CONN_FETCH(obj)->name);
 } /* conn_fetch_destroy */
 
+static void __attribute__((unused))
+conn_matcher_destroy(sdb_object_t *obj)
+{
+       if (CONN_MATCHER(obj)->matcher)
+               sdb_object_deref(SDB_OBJ(CONN_MATCHER(obj)->matcher));
+} /* conn_matcher_destroy */
+
 static void __attribute__((unused))
 conn_lookup_destroy(sdb_object_t *obj)
 {
        if (CONN_LOOKUP(obj)->matcher)
                sdb_object_deref(SDB_OBJ(CONN_LOOKUP(obj)->matcher));
-} /* conn_fetch_destroy */
+} /* conn_lookup_destroy */
 
 #ifdef __cplusplus
 } /* extern "C" */