2
Copyright (C) 2007 Christian Dywan <christian@twotoasts.de>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
See the file COPYING for the full license text.
12
#ifndef __KATZE_UTILS_H__
13
#define __KATZE_UTILS_H__
15
#include <glib-object.h>
22
* @rvalue: the new value
24
* Frees @lvalue if needed and assigns it the value of @rvalue.
26
#define katze_assign(lvalue, rvalue) \
34
* katze_object_assign:
36
* @rvalue: the new value
38
* Unrefs @lvalue if needed and assigns it the value of @rvalue.
40
#define katze_object_assign(lvalue, rvalue) \
44
g_object_unref (lvalue); \
50
#endif /* __KATZE_UTILS_H__ */