summaryrefslogtreecommitdiff
path: root/source4/lib/registry/registry.i
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-14 14:28:07 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:22 +0100
commitdf8c7da800f75ff45fb48de59d7ce3f0667d375f (patch)
tree65c17e04d7f2e83d2266b6f71ef04c8e79a94d3f /source4/lib/registry/registry.i
parent43ac3d9b44b98d44db9b1550c47e8f96a410d1e9 (diff)
downloadsamba-df8c7da800f75ff45fb48de59d7ce3f0667d375f.tar.gz
samba-df8c7da800f75ff45fb48de59d7ce3f0667d375f.tar.bz2
samba-df8c7da800f75ff45fb48de59d7ce3f0667d375f.zip
r26454: Add simple SWIG macro for wrapping talloced types.
(This used to be commit 760fcc8bfa2a7cd7641465cb3bae889e9e0fbc75)
Diffstat (limited to 'source4/lib/registry/registry.i')
-rw-r--r--source4/lib/registry/registry.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/registry/registry.i b/source4/lib/registry/registry.i
index ef823dddbd..c5b4eed968 100644
--- a/source4/lib/registry/registry.i
+++ b/source4/lib/registry/registry.i
@@ -88,10 +88,11 @@ WERROR reg_open_local(TALLOC_CTX *parent_ctx, struct registry_context **ctx,
free((char **) $1);
}
+%talloctype(reg);
+
typedef struct registry_context {
%extend {
- ~reg() { talloc_free($self); }
WERROR get_predefined_key_by_name(const char *name,
struct registry_key **key);
@@ -128,10 +129,9 @@ WERROR reg_open_hive(TALLOC_CTX *parent_ctx, const char *location,
struct loadparm_context *lp_ctx,
struct hive_key **root);
+%talloctype(hive);
+
typedef struct hive_key {
- %extend {
- ~hive() { talloc_free($self); }
- }
} hive;
%rename(open_samba) reg_open_samba;