X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=svm%2Fsvmdb.h;h=a113c22d10dd9bb58e042e7fc547a2229829d43b;hb=58a90a4b1648a1581a69c06ec729f20979f9e6b2;hp=5f44b33280d0d4aac80ed39fb9edf34923954048;hpb=8a7fb0cf6844ed09173fd58224f7753a1b504cf4;p=vpp.git diff --git a/svm/svmdb.h b/svm/svmdb.h index 5f44b33280d..a113c22d10d 100644 --- a/svm/svmdb.h +++ b/svm/svmdb.h @@ -81,19 +81,21 @@ typedef struct u32 opaque:28; } svmdb_notification_args_t; +typedef struct +{ + char *root_path; + uword size; + u32 uid; + u32 gid; +} svmdb_map_args_t; + /* * Must be a reasonable number, several mb smaller than * SVM_GLOBAL_REGION_SIZE, or no donut for you... */ #define SVMDB_DEFAULT_SIZE (4<<20) -svmdb_client_t *svmdb_map (void); - -svmdb_client_t *svmdb_map_size (uword size); - -svmdb_client_t *svmdb_map_chroot (char *root_path); - -svmdb_client_t *svmdb_map_chroot_size (char *root_path, uword size); +svmdb_client_t *svmdb_map (svmdb_map_args_t *); void svmdb_unmap (svmdb_client_t * client); void svmdb_local_unset_string_variable (svmdb_client_t * client, char *var);