2.34.0
[platform/upstream/at-spi2-core.git] / dbind / dbind-any.h
1 /*
2  * Copyright 2008-2011 Novell, Inc.
3  *
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.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef _DBIND_ANY_H_
21 #define _DBIND_ANY_H_
22
23 #define DBUS_API_SUBJECT_TO_CHANGE
24 #include <dbus/dbus.h>
25
26 unsigned int dbind_find_c_alignment (const char *type);
27
28 void   dbind_any_marshal       (DBusMessageIter *iter,
29                                 const char           **type,
30                                 void           **val);
31
32 void   dbind_any_marshal_va    (DBusMessageIter *iter,
33                                 const char           **arg_types,
34                                 va_list          args);
35
36 void   dbind_any_demarshal     (DBusMessageIter *iter,
37                                 const char           **type,
38                                 void           **val);
39
40 void   dbind_any_demarshal_va  (DBusMessageIter *iter,
41                                 const char           **arg_types,
42                                 va_list          args);
43
44 void   dbind_any_free          (const char      *type,
45                                 void            *ptr_to_ptr);
46
47 void   dbind_any_free_ptr      (const char      *type,
48                                 void            *ptr);
49
50 #endif /* _DBIND_ANY_H_ */