summaryrefslogtreecommitdiff
path: root/gck/gck-private.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2010-09-28 01:05:41 +0000
committerStef Walter <stef@memberwebs.com>2010-09-28 01:05:41 +0000
commit5d43af10ea3482c14aa21c99355bee68b3b66e87 (patch)
tree1cb47881a82d066c18b6d546675473f440a55372 /gck/gck-private.h
parent77766af8777c6ffa868c271bca20a3c094c97ea8 (diff)
[gck] Simplify use of GckMechanism
There's no way to do a deep copy of a GckMechanisms aka CK_MECHANISM. The parameter may contain pointers to other memory else where. So we do a shallow copy instead. The memory is expected to stay around just like a buffer.
Diffstat (limited to 'gck/gck-private.h')
-rw-r--r--gck/gck-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gck/gck-private.h b/gck/gck-private.h
index 00af6298..91727fe5 100644
--- a/gck/gck-private.h
+++ b/gck/gck-private.h
@@ -106,6 +106,8 @@ typedef struct _GckArguments {
} GckArguments;
+#define GCK_MECHANISM_EMPTY { 0UL, NULL, 0 }
+
#define GCK_ARGUMENTS_INIT { NULL, NULL, 0 }
#define GCK_TYPE_CALL (_gck_call_get_type())