librpc: add FSRVP server state idl
[samba.git] / librpc / idl / fsrvp_state.idl
1 #include "idl_types.h"
2 [
3         pointer_default(unique)
4 ]
5 interface fsrvp_state
6 {
7         /* database format version, NOT the FSRVP protocol version */
8         const uint32 FSRVP_STATE_DB_VERSION = 1;
9
10         /*
11          * These data structures describe the FSRVP server on-disk format. Any
12          * changes should result in a new DB version number, and corresponding
13          * upgrade function.
14          */
15         typedef [public] struct {
16                 [flag(STR_UTF8|STR_NULLTERM)] string share_name;
17                 [flag(STR_UTF8|STR_NULLTERM)] string sc_share_name;
18                 [flag(STR_UTF8|STR_NULLTERM)] string sc_share_comment;
19                 boolean32 is_exposed;
20         } fsrvp_state_smap;
21
22         typedef [public] struct {
23                 [flag(STR_UTF8|STR_NULLTERM)] string id_str;
24                 [flag(STR_UTF8|STR_NULLTERM)] string volume_name;
25                 [flag(STR_UTF8|STR_NULLTERM)] string sc_path;
26                 time_t create_ts;
27                 int smaps_count;
28         } fsrvp_state_sc;
29
30         typedef [public] struct {
31                 [flag(STR_UTF8|STR_NULLTERM)] string id_str;
32                 int state;
33                 int context;
34                 int scs_count;
35         } fsrvp_state_sc_set;
36 }