summaryrefslogtreecommitdiff
path: root/libkmod/libkmod-private.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2011-12-16 16:08:53 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2011-12-17 19:43:11 -0200
commit3d8226edfea12b951f6e257b087ec7453135ed10 (patch)
treecd72d8b9168c1f97fd640df2f03850f8fd2b66b6 /libkmod/libkmod-private.h
parentf4fc55236815514fe44cc9258a1b42af1383f5a1 (diff)
downloadkmod-3d8226edfea12b951f6e257b087ec7453135ed10.tar.gz
kmod-3d8226edfea12b951f6e257b087ec7453135ed10.tar.bz2
kmod-3d8226edfea12b951f6e257b087ec7453135ed10.zip
implement zlib module loading.
Diffstat (limited to 'libkmod/libkmod-private.h')
-rw-r--r--libkmod/libkmod-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libkmod/libkmod-private.h b/libkmod/libkmod-private.h
index c992129..b9a93d2 100644
--- a/libkmod/libkmod-private.h
+++ b/libkmod/libkmod-private.h
@@ -121,6 +121,12 @@ int kmod_hash_add(struct kmod_hash *hash, const char *key, const void *value);
int kmod_hash_del(struct kmod_hash *hash, const char *key);
void *kmod_hash_find(const struct kmod_hash *hash, const char *key);
+/* libkmod-file.c */
+struct kmod_file *kmod_file_open(const char *filename) __must_check __attribute__((nonnull(1)));
+void *kmod_file_get_contents(const struct kmod_file *file) __must_check __attribute__((nonnull(1)));
+off_t kmod_file_get_size(const struct kmod_file *file) __must_check __attribute__((nonnull(1)));
+void kmod_file_unref(struct kmod_file *file) __attribute__((nonnull(1)));
+
/* util functions */
char *getline_wrapped(FILE *fp, unsigned int *linenum) __attribute__((nonnull(1)));