[ostree] otutil: New utility functions
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] otutil: New utility functions
- Date: Tue, 29 Nov 2011 21:16:14 +0000 (UTC)
commit 70574c3c062b5a37d47705454cdcce19d320a333
Author: Colin Walters <walters verbum org>
Date: Tue Nov 29 13:42:05 2011 -0500
otutil: New utility functions
src/libotutil/otutil.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/libotutil/otutil.h b/src/libotutil/otutil.h
index a93dc84..a48408f 100644
--- a/src/libotutil/otutil.h
+++ b/src/libotutil/otutil.h
@@ -22,6 +22,16 @@
#ifndef __OSTREE_UTIL_H__
+#define ot_gobject_refz(o) (o ? g_object_ref (o) : o)
+#define ot_clear_checksum(c) G_STMT_START { \
+ typeof(c) __tmp_chksum = c; \
+ if (__tmp_chksum) \
+ { \
+ g_checksum_free (*__tmp_chksum); \
+ *__tmp_chksum = NULL; \
+ } \
+ } G_STMT_END;
+
#include <ot-gio-utils.h>
#include <ot-glib-compat.h>
#include <ot-opt-utils.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]