projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kdbus] Add G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE flag
[platform/upstream/glib.git]
/
gobject
/
genums.h
diff --git
a/gobject/genums.h
b/gobject/genums.h
index
bf8a419
..
15c9d81
100644
(file)
--- a/
gobject/genums.h
+++ b/
gobject/genums.h
@@
-12,17
+12,15
@@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
*/
+#ifndef __G_ENUMS_H__
+#define __G_ENUMS_H__
+
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
#error "Only <glib-object.h> can be included directly."
#endif
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
#error "Only <glib-object.h> can be included directly."
#endif
-#ifndef __G_ENUMS_H__
-#define __G_ENUMS_H__
-
#include <gobject/gtype.h>
G_BEGIN_DECLS
#include <gobject/gtype.h>
G_BEGIN_DECLS
@@
-217,23
+215,33
@@
struct _GFlagsValue
/* --- prototypes --- */
/* --- prototypes --- */
+GLIB_AVAILABLE_IN_ALL
GEnumValue* g_enum_get_value (GEnumClass *enum_class,
gint value);
GEnumValue* g_enum_get_value (GEnumClass *enum_class,
gint value);
+GLIB_AVAILABLE_IN_ALL
GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class,
const gchar *name);
GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class,
const gchar *name);
+GLIB_AVAILABLE_IN_ALL
GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class,
const gchar *nick);
GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class,
const gchar *nick);
+GLIB_AVAILABLE_IN_ALL
GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class,
guint value);
GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class,
guint value);
+GLIB_AVAILABLE_IN_ALL
GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class,
const gchar *name);
GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class,
const gchar *name);
+GLIB_AVAILABLE_IN_ALL
GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class,
const gchar *nick);
GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class,
const gchar *nick);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_enum (GValue *value,
gint v_enum);
void g_value_set_enum (GValue *value,
gint v_enum);
+GLIB_AVAILABLE_IN_ALL
gint g_value_get_enum (const GValue *value);
gint g_value_get_enum (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_flags (GValue *value,
guint v_flags);
void g_value_set_flags (GValue *value,
guint v_flags);
+GLIB_AVAILABLE_IN_ALL
guint g_value_get_flags (const GValue *value);
guint g_value_get_flags (const GValue *value);
@@
-242,16
+250,20
@@
guint g_value_get_flags (const GValue *value);
/* const_static_values is a NULL terminated array of enum/flags
* values that is taken over!
*/
/* const_static_values is a NULL terminated array of enum/flags
* values that is taken over!
*/
+GLIB_AVAILABLE_IN_ALL
GType g_enum_register_static (const gchar *name,
const GEnumValue *const_static_values);
GType g_enum_register_static (const gchar *name,
const GEnumValue *const_static_values);
+GLIB_AVAILABLE_IN_ALL
GType g_flags_register_static (const gchar *name,
const GFlagsValue *const_static_values);
/* functions to complete the type information
* for enums/flags implemented by plugins
*/
GType g_flags_register_static (const gchar *name,
const GFlagsValue *const_static_values);
/* functions to complete the type information
* for enums/flags implemented by plugins
*/
+GLIB_AVAILABLE_IN_ALL
void g_enum_complete_type_info (GType g_enum_type,
GTypeInfo *info,
const GEnumValue *const_values);
void g_enum_complete_type_info (GType g_enum_type,
GTypeInfo *info,
const GEnumValue *const_values);
+GLIB_AVAILABLE_IN_ALL
void g_flags_complete_type_info (GType g_flags_type,
GTypeInfo *info,
const GFlagsValue *const_values);
void g_flags_complete_type_info (GType g_flags_type,
GTypeInfo *info,
const GFlagsValue *const_values);