X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gobject%2Fgvaluetypes.h;h=5319acb613e8e1366aff48299146a8b5fa989f48;hb=aa0e8735c14ebb3cbfa38d441a6a05bb978e23b2;hp=638578337b336f929f3e55a96b05546ae4768a4f;hpb=a4e38786750d538b334b8a7a7cc9f5a3ff48bc33;p=platform%2Fupstream%2Fglib.git
diff --git a/gobject/gvaluetypes.h b/gobject/gvaluetypes.h
index 6385783..5319acb 100644
--- a/gobject/gvaluetypes.h
+++ b/gobject/gvaluetypes.h
@@ -12,19 +12,17 @@
* 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 .
*
* gvaluetypes.h: GLib default values
*/
+#ifndef __G_VALUETYPES_H__
+#define __G_VALUETYPES_H__
+
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
#error "Only can be included directly."
#endif
-#ifndef __G_VALUETYPES_H__
-#define __G_VALUETYPES_H__
-
#include
G_BEGIN_DECLS
@@ -163,70 +161,129 @@ G_BEGIN_DECLS
* Returns: %TRUE on success.
*/
#define G_VALUE_HOLDS_GTYPE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_GTYPE))
+/**
+ * G_VALUE_HOLDS_VARIANT:
+ * @value: a valid #GValue structure
+ *
+ * Checks whether the given #GValue can hold values of type %G_TYPE_VARIANT.
+ *
+ * Returns: %TRUE on success.
+ *
+ * Since: 2.26
+ */
+#define G_VALUE_HOLDS_VARIANT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_VARIANT))
/* --- prototypes --- */
-void g_value_set_char (GValue *value,
- gchar v_char);
-gchar g_value_get_char (const GValue *value);
+GLIB_DEPRECATED_IN_2_32_FOR(g_value_set_schar)
+void g_value_set_char (GValue *value,
+ gchar v_char);
+GLIB_DEPRECATED_IN_2_32_FOR(g_value_get_schar)
+gchar g_value_get_char (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
+void g_value_set_schar (GValue *value,
+ gint8 v_char);
+GLIB_AVAILABLE_IN_ALL
+gint8 g_value_get_schar (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_uchar (GValue *value,
guchar v_uchar);
+GLIB_AVAILABLE_IN_ALL
guchar g_value_get_uchar (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_boolean (GValue *value,
gboolean v_boolean);
+GLIB_AVAILABLE_IN_ALL
gboolean g_value_get_boolean (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_int (GValue *value,
gint v_int);
+GLIB_AVAILABLE_IN_ALL
gint g_value_get_int (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_uint (GValue *value,
guint v_uint);
+GLIB_AVAILABLE_IN_ALL
guint g_value_get_uint (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_long (GValue *value,
glong v_long);
+GLIB_AVAILABLE_IN_ALL
glong g_value_get_long (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_ulong (GValue *value,
gulong v_ulong);
+GLIB_AVAILABLE_IN_ALL
gulong g_value_get_ulong (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_int64 (GValue *value,
gint64 v_int64);
+GLIB_AVAILABLE_IN_ALL
gint64 g_value_get_int64 (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_uint64 (GValue *value,
guint64 v_uint64);
+GLIB_AVAILABLE_IN_ALL
guint64 g_value_get_uint64 (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_float (GValue *value,
gfloat v_float);
+GLIB_AVAILABLE_IN_ALL
gfloat g_value_get_float (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_double (GValue *value,
gdouble v_double);
+GLIB_AVAILABLE_IN_ALL
gdouble g_value_get_double (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_string (GValue *value,
const gchar *v_string);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_static_string (GValue *value,
const gchar *v_string);
-G_CONST_RETURN gchar* g_value_get_string (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
+const gchar * g_value_get_string (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
gchar* g_value_dup_string (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_pointer (GValue *value,
gpointer v_pointer);
+GLIB_AVAILABLE_IN_ALL
gpointer g_value_get_pointer (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
GType g_gtype_get_type (void);
+GLIB_AVAILABLE_IN_ALL
void g_value_set_gtype (GValue *value,
GType v_gtype);
+GLIB_AVAILABLE_IN_ALL
GType g_value_get_gtype (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
+void g_value_set_variant (GValue *value,
+ GVariant *variant);
+GLIB_AVAILABLE_IN_ALL
+void g_value_take_variant (GValue *value,
+ GVariant *variant);
+GLIB_AVAILABLE_IN_ALL
+GVariant* g_value_get_variant (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
+GVariant* g_value_dup_variant (const GValue *value);
/* Convenience for registering new pointer types */
+GLIB_AVAILABLE_IN_ALL
GType g_pointer_type_register_static (const gchar *name);
/* debugging aid, describe value contents as string */
+GLIB_AVAILABLE_IN_ALL
gchar* g_strdup_value_contents (const GValue *value);
+GLIB_AVAILABLE_IN_ALL
void g_value_take_string (GValue *value,
gchar *v_string);
-#ifndef G_DISABLE_DEPRECATED
-void g_value_set_string_take_ownership (GValue *value,
- gchar *v_string);
-#endif
+GLIB_DEPRECATED_FOR(g_value_take_string)
+void g_value_set_string_take_ownership (GValue *value,
+ gchar *v_string);
/* humpf, need a C representable type name for G_TYPE_STRING */