summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-31 11:18:12 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-12 09:14:09 +0200
commitd3eebed911becad9b97c78c10a53c9ca8ba066ec (patch)
treee3567305ab6cd85d6141ce2242ddf4013396b1d7 /source3
parent1b2b703b378c530c5841ebdc75ce00af250bf9ce (diff)
downloadsamba-d3eebed911becad9b97c78c10a53c9ca8ba066ec.tar.gz
samba-d3eebed911becad9b97c78c10a53c9ca8ba066ec.tar.bz2
samba-d3eebed911becad9b97c78c10a53c9ca8ba066ec.zip
rerun 'make idl'
metze (This used to be commit f34dad2b4ad97a845729ea0fb5beba7fd6cb7265)
Diffstat (limited to 'source3')
-rw-r--r--source3/librpc/gen_ndr/messaging.h11
-rw-r--r--source3/librpc/gen_ndr/ndr_messaging.c81
-rw-r--r--source3/librpc/gen_ndr/ndr_messaging.h3
3 files changed, 95 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/messaging.h b/source3/librpc/gen_ndr/messaging.h
index 71340c0987..ca13b7cdea 100644
--- a/source3/librpc/gen_ndr/messaging.h
+++ b/source3/librpc/gen_ndr/messaging.h
@@ -18,4 +18,15 @@ struct messaging_array {
struct messaging_rec *messages;
}/* [public] */;
+struct dbwrap_tdb2_changes {
+ const char *magic_string;/* [value("TDB2"),charset(DOS)] */
+ uint32_t magic_version;/* [value] */
+ const char *name;/* [charset(UTF8)] */
+ uint32_t old_seqnum;
+ uint32_t new_seqnum;
+ uint32_t num_changes;
+ uint32_t num_keys;
+ DATA_BLOB *keys;
+}/* [public] */;
+
#endif /* _HEADER_messaging */
diff --git a/source3/librpc/gen_ndr/ndr_messaging.c b/source3/librpc/gen_ndr/ndr_messaging.c
index db886316f1..60cab9ae89 100644
--- a/source3/librpc/gen_ndr/ndr_messaging.c
+++ b/source3/librpc/gen_ndr/ndr_messaging.c
@@ -112,3 +112,84 @@ _PUBLIC_ void ndr_print_messaging_array(struct ndr_print *ndr, const char *name,
ndr->depth--;
}
+_PUBLIC_ enum ndr_err_code ndr_push_dbwrap_tdb2_changes(struct ndr_push *ndr, int ndr_flags, const struct dbwrap_tdb2_changes *r)
+{
+ uint32_t cntr_keys_0;
+ if (ndr_flags & NDR_SCALARS) {
+ NDR_CHECK(ndr_push_align(ndr, 4));
+ NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, "TDB2", 4, sizeof(uint8_t), CH_DOS));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->name, CH_UTF8)));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->name, CH_UTF8)));
+ NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->name, ndr_charset_length(r->name, CH_UTF8), sizeof(uint8_t), CH_UTF8));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->old_seqnum));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->new_seqnum));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_changes));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_keys));
+ for (cntr_keys_0 = 0; cntr_keys_0 < r->num_keys; cntr_keys_0++) {
+ NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->keys[cntr_keys_0]));
+ }
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ enum ndr_err_code ndr_pull_dbwrap_tdb2_changes(struct ndr_pull *ndr, int ndr_flags, struct dbwrap_tdb2_changes *r)
+{
+ uint32_t cntr_keys_0;
+ TALLOC_CTX *_mem_save_keys_0;
+ if (ndr_flags & NDR_SCALARS) {
+ NDR_CHECK(ndr_pull_align(ndr, 4));
+ NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->magic_string, 4, sizeof(uint8_t), CH_DOS));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->magic_version));
+ NDR_CHECK(ndr_pull_array_size(ndr, &r->name));
+ NDR_CHECK(ndr_pull_array_length(ndr, &r->name));
+ if (ndr_get_array_length(ndr, &r->name) > ndr_get_array_size(ndr, &r->name)) {
+ return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->name), ndr_get_array_length(ndr, &r->name));
+ }
+ NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->name), sizeof(uint8_t)));
+ NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->name, ndr_get_array_length(ndr, &r->name), sizeof(uint8_t), CH_UTF8));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->old_seqnum));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->new_seqnum));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_changes));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_keys));
+ NDR_PULL_ALLOC_N(ndr, r->keys, r->num_keys);
+ _mem_save_keys_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->keys, 0);
+ for (cntr_keys_0 = 0; cntr_keys_0 < r->num_keys; cntr_keys_0++) {
+ NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->keys[cntr_keys_0]));
+ }
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_keys_0, 0);
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_dbwrap_tdb2_changes(struct ndr_print *ndr, const char *name, const struct dbwrap_tdb2_changes *r)
+{
+ uint32_t cntr_keys_0;
+ ndr_print_struct(ndr, name, "dbwrap_tdb2_changes");
+ ndr->depth++;
+ ndr_print_string(ndr, "magic_string", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?"TDB2":r->magic_string);
+ ndr_print_uint32(ndr, "magic_version", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->magic_version);
+ ndr_print_string(ndr, "name", r->name);
+ ndr_print_uint32(ndr, "old_seqnum", r->old_seqnum);
+ ndr_print_uint32(ndr, "new_seqnum", r->new_seqnum);
+ ndr_print_uint32(ndr, "num_changes", r->num_changes);
+ ndr_print_uint32(ndr, "num_keys", r->num_keys);
+ ndr->print(ndr, "%s: ARRAY(%d)", "keys", r->num_keys);
+ ndr->depth++;
+ for (cntr_keys_0=0;cntr_keys_0<r->num_keys;cntr_keys_0++) {
+ char *idx_0=NULL;
+ if (asprintf(&idx_0, "[%d]", cntr_keys_0) != -1) {
+ ndr_print_DATA_BLOB(ndr, "keys", r->keys[cntr_keys_0]);
+ free(idx_0);
+ }
+ }
+ ndr->depth--;
+ ndr->depth--;
+}
+
diff --git a/source3/librpc/gen_ndr/ndr_messaging.h b/source3/librpc/gen_ndr/ndr_messaging.h
index 446b063ae1..f47fe547a0 100644
--- a/source3/librpc/gen_ndr/ndr_messaging.h
+++ b/source3/librpc/gen_ndr/ndr_messaging.h
@@ -13,4 +13,7 @@ void ndr_print_messaging_rec(struct ndr_print *ndr, const char *name, const stru
enum ndr_err_code ndr_push_messaging_array(struct ndr_push *ndr, int ndr_flags, const struct messaging_array *r);
enum ndr_err_code ndr_pull_messaging_array(struct ndr_pull *ndr, int ndr_flags, struct messaging_array *r);
void ndr_print_messaging_array(struct ndr_print *ndr, const char *name, const struct messaging_array *r);
+enum ndr_err_code ndr_push_dbwrap_tdb2_changes(struct ndr_push *ndr, int ndr_flags, const struct dbwrap_tdb2_changes *r);
+enum ndr_err_code ndr_pull_dbwrap_tdb2_changes(struct ndr_pull *ndr, int ndr_flags, struct dbwrap_tdb2_changes *r);
+void ndr_print_dbwrap_tdb2_changes(struct ndr_print *ndr, const char *name, const struct dbwrap_tdb2_changes *r);
#endif /* _HEADER_NDR_messaging */