summaryrefslogtreecommitdiffstats
path: root/g13/utils.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-10-13 21:17:24 +0200
committerWerner Koch <wk@gnupg.org>2009-10-13 21:17:24 +0200
commit536b6ab09fa3e17f955c8b55e8469f3265a1936f (patch)
treea06fba4fb448cc70de12a470d7dde7f22c3eaf8f /g13/utils.h
parentReplace C99 style vararg macro which was anyway not correct. (diff)
downloadgnupg2-536b6ab09fa3e17f955c8b55e8469f3265a1936f.tar.xz
gnupg2-536b6ab09fa3e17f955c8b55e8469f3265a1936f.zip
Keep on hacking on g13. A simple --create and --mount does now work.
A hacked up encfs is required.
Diffstat (limited to 'g13/utils.h')
-rw-r--r--g13/utils.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/g13/utils.h b/g13/utils.h
index c1104f759..ef718d60d 100644
--- a/g13/utils.h
+++ b/g13/utils.h
@@ -22,10 +22,23 @@
#include "../common/membuf.h"
-
+/* Append a new tuple to a memory buffer. */
void append_tuple (membuf_t *membuf,
int tag, const void *value, size_t length);
+/* The tuple descriptor object. */
+struct tupledesc_s;
+typedef struct tupledesc_s *tupledesc_t;
+
+gpg_error_t create_tupledesc (tupledesc_t *r_tupledesc,
+ void *data, size_t datalen);
+void destroy_tupledesc (tupledesc_t tupledesc);
+tupledesc_t ref_tupledesc (tupledesc_t tupledesc);
+const void *find_tuple (tupledesc_t tupledesc,
+ unsigned int tag, size_t *r_length);
+const void *next_tuple (tupledesc_t tupledesc,
+ unsigned int *r_tag, size_t *r_length);
+
#endif /*G13_UTILS_H*/