summaryrefslogtreecommitdiffstats
path: root/lib/libgeom/libgeom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-23 10:15:02 +0000
committerphk <phk@FreeBSD.org>2003-03-23 10:15:02 +0000
commitdaa779779c50fac88bb9b400c4841a2559f0ce3e (patch)
treedff3f23b40197f699ea0aef930870ccb9f2372a5 /lib/libgeom/libgeom.h
parente6351bec2e65d2ec04b1f196bacc8d2743524165 (diff)
downloadFreeBSD-src-daa779779c50fac88bb9b400c4841a2559f0ce3e.zip
FreeBSD-src-daa779779c50fac88bb9b400c4841a2559f0ce3e.tar.gz
Add marshalling functions for OAM api.
Diffstat (limited to 'lib/libgeom/libgeom.h')
-rw-r--r--lib/libgeom/libgeom.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h
index db76135..9f00253 100644
--- a/lib/libgeom/libgeom.h
+++ b/lib/libgeom/libgeom.h
@@ -34,6 +34,8 @@
#include <sys/queue.h>
#include <sys/time.h>
+#include <geom/geom_ctl.h>
+
void geom_stats_close(void);
void geom_stats_resync(void);
int geom_stats_open(void);
@@ -125,4 +127,25 @@ int geom_xml2tree(struct gmesh *gmp, char *p);
int geom_gettree(struct gmesh *gmp);
void geom_deletetree(struct gmesh *gmp);
+/* geom_ctl.c */
+
+struct geom_ctl_req;
+
+#ifdef _STDIO_H_ /* limit #include pollution */
+void geom_ctl_dump(struct geom_ctl_req *req, FILE *f);
+#endif
+void geom_ctl_free(struct geom_ctl_req *req);
+struct geom_ctl_req *geom_ctl_get_handle(enum geom_ctl_request req);
+const char *geom_ctl_issue(struct geom_ctl_req *req);
+void geom_ctl_set_class_by_id(struct geom_ctl_req *req, void *id);
+void geom_ctl_set_class_by_name(struct geom_ctl_req *req, const char *name);
+void geom_ctl_set_consumer_by_id(struct geom_ctl_req *req, void *id);
+void geom_ctl_set_consumer_by_name(struct geom_ctl_req *req, const char *name);
+void geom_ctl_set_geom_by_id(struct geom_ctl_req *req, void *id);
+void geom_ctl_set_geom_by_name(struct geom_ctl_req *req, const char *name);
+void geom_ctl_set_meta(struct geom_ctl_req *req, off_t offset, u_int len, void* val);
+void geom_ctl_set_param(struct geom_ctl_req *req, const char *name, int len, void* val);
+void geom_ctl_set_provider_by_id(struct geom_ctl_req *req, void *id);
+void geom_ctl_set_provider_by_name(struct geom_ctl_req *req, const char *name);
+
#endif /* _LIBGEOM_H_ */
OpenPOWER on IntegriCloud