summaryrefslogtreecommitdiff
path: root/rpmio/rpmio_internal.h
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:17:20 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:17:20 +0900
commit7df2385c2f6c93f96e00bc87f2086066cae89ecc (patch)
tree79d5c20a494622eb084de831a2a51530cd421e33 /rpmio/rpmio_internal.h
parentb7a3bffb8e0341b7e4ef69def268bca3a7f279ff (diff)
downloadrpm-tizen_2.2.tar.gz
rpm-tizen_2.2.tar.bz2
rpm-tizen_2.2.zip
Diffstat (limited to 'rpmio/rpmio_internal.h')
-rw-r--r--rpmio/rpmio_internal.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h
new file mode 100644
index 0000000..8c9f1a8
--- /dev/null
+++ b/rpmio/rpmio_internal.h
@@ -0,0 +1,44 @@
+#ifndef H_RPMIO_INTERNAL
+#define H_RPMIO_INTERNAL
+
+/** \ingroup rpmio
+ * \file rpmio/rpmio_internal.h
+ */
+
+#include <rpm/rpmio.h>
+#include <rpm/rpmpgp.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void fdSetBundle(FD_t fd, rpmDigestBundle bundle);
+rpmDigestBundle fdGetBundle(FD_t fd);
+
+/** \ingroup rpmio
+ * Attach digest to fd.
+ */
+void fdInitDigest(FD_t fd, int hashalgo, rpmDigestFlags flags);
+
+/** \ingroup rpmio
+ */
+void fdFiniDigest(FD_t fd, int hashalgo,
+ void ** datap,
+ size_t * lenp,
+ int asAscii);
+
+/**
+ * Read an entire file into a buffer.
+ * @param fn file name to read
+ * @retval *bp (malloc'd) buffer address
+ * @retval *blenp (malloc'd) buffer length
+ * @return 0 on success
+ */
+int rpmioSlurp(const char * fn,
+ uint8_t ** bp, ssize_t * blenp);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* H_RPMIO_INTERNAL */