summaryrefslogtreecommitdiff
path: root/libkmod/libkmod-index.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-16 15:56:17 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-16 16:05:46 -0200
commit758428a75f569600b3c649eedc7c8c02e40628f1 (patch)
tree3176aa359c7a715f5385f5eaa5e96a0edfa4675a /libkmod/libkmod-index.h
parentf1cbf3cfe27bb3b76a15ce95a744502f04fac2d6 (diff)
downloadkmod-758428a75f569600b3c649eedc7c8c02e40628f1.tar.gz
kmod-758428a75f569600b3c649eedc7c8c02e40628f1.tar.bz2
kmod-758428a75f569600b3c649eedc7c8c02e40628f1.zip
libkmod: dump index files
Provide a function to dump the index files to a certain fd. It could be more optimized (particularly the functions to dump the index that were copied and pasted from m-i-t), but it seems like the only user of it is 'modprobe -c', used for debugging purposes. So, keep it as is.
Diffstat (limited to 'libkmod/libkmod-index.h')
-rw-r--r--libkmod/libkmod-index.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libkmod/libkmod-index.h b/libkmod/libkmod-index.h
index e9cd456..0134ac5 100644
--- a/libkmod/libkmod-index.h
+++ b/libkmod/libkmod-index.h
@@ -114,6 +114,7 @@ struct index_file;
struct index_file *index_file_open(const char *filename);
void index_file_close(struct index_file *idx);
char *index_search(struct index_file *idx, const char *key);
+void index_dump(struct index_file *in, int fd, const char *prefix);
struct index_value *index_searchwild(struct index_file *idx, const char *key);
void index_values_free(struct index_value *values);
@@ -125,5 +126,6 @@ struct index_mm *index_mm_open(struct kmod_ctx *ctx, const char *filename,
void index_mm_close(struct index_mm *index);
char *index_mm_search(struct index_mm *idx, const char *key);
struct index_value *index_mm_searchwild(struct index_mm *idx, const char *key);
+void index_mm_dump(struct index_mm *idx, int fd, const char *prefix);
#endif