gvarianttype.h | gvarianttype.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the | * License along with this library; if not, write to the | |||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
* | * | |||
* Author: Ryan Lortie <desrt@desrt.ca> | * Author: Ryan Lortie <desrt@desrt.ca> | |||
*/ | */ | |||
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && ! | ||||
defined (GLIB_COMPILATION) | ||||
#error "Only <glib.h> can be included directly." | ||||
#endif | ||||
#ifndef __G_VARIANT_TYPE_H__ | #ifndef __G_VARIANT_TYPE_H__ | |||
#define __G_VARIANT_TYPE_H__ | #define __G_VARIANT_TYPE_H__ | |||
#include <glib/gmessages.h> | #include <glib/gmessages.h> | |||
#include <glib/gtypes.h> | #include <glib/gtypes.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* GVariantType: | * GVariantType: | |||
* | * | |||
* A type in the GVariant type system. | * A type in the GVariant type system. | |||
* | * | |||
* Two types may not be compared by value; use g_variant_type_equal() or | * Two types may not be compared by value; use g_variant_type_equal() or | |||
* g_variant_type_is_subtype(). May be copied using | * g_variant_type_is_subtype_of(). May be copied using | |||
* g_variant_type_copy() and freed using g_variant_type_free(). | * g_variant_type_copy() and freed using g_variant_type_free(). | |||
**/ | **/ | |||
typedef struct _GVariantType GVariantType; | typedef struct _GVariantType GVariantType; | |||
/** | /** | |||
* G_VARIANT_TYPE_BOOLEAN: | * G_VARIANT_TYPE_BOOLEAN: | |||
* | * | |||
* The type of a value that can be either %TRUE or %FALSE. | * The type of a value that can be either %TRUE or %FALSE. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_BOOLEAN ((const GVariantType *) "b") | #define G_VARIANT_TYPE_BOOLEAN ((const GVariantType *) "b") | |||
skipping to change at line 125 | skipping to change at line 129 | |||
/** | /** | |||
* G_VARIANT_TYPE_STRING: | * G_VARIANT_TYPE_STRING: | |||
* | * | |||
* The type of a string. "" is a string. %NULL is not a string. | * The type of a string. "" is a string. %NULL is not a string. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_STRING ((const GVariantType *) "s") | #define G_VARIANT_TYPE_STRING ((const GVariantType *) "s") | |||
/** | /** | |||
* G_VARIANT_TYPE_OBJECT_PATH: | * G_VARIANT_TYPE_OBJECT_PATH: | |||
* | * | |||
* The type of a DBus object reference. These are strings of a | * The type of a D-Bus object reference. These are strings of a | |||
* specific format used to identify objects at a given destination on | * specific format used to identify objects at a given destination on | |||
* the bus. | * the bus. | |||
* | * | |||
* If you are not interacting with DBus, then there is no reason to make | * If you are not interacting with D-Bus, then there is no reason to make | |||
* use of this type. If you are, then the DBus specification contains a | * use of this type. If you are, then the D-Bus specification contains a | |||
* precise description of valid object paths. | * precise description of valid object paths. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_OBJECT_PATH ((const GVariantType *) "o") | #define G_VARIANT_TYPE_OBJECT_PATH ((const GVariantType *) "o") | |||
/** | /** | |||
* G_VARIANT_TYPE_SIGNATURE: | * G_VARIANT_TYPE_SIGNATURE: | |||
* | * | |||
* The type of a DBus type signature. These are strings of a specific | * The type of a D-Bus type signature. These are strings of a specific | |||
* format used as type signatures for DBus methods and messages. | * format used as type signatures for D-Bus methods and messages. | |||
* | * | |||
* If you are not interacting with DBus, then there is no reason to make | * If you are not interacting with D-Bus, then there is no reason to make | |||
* use of this type. If you are, then the DBus specification contains a | * use of this type. If you are, then the D-Bus specification contains a | |||
* precise description of valid signature strings. | * precise description of valid signature strings. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_SIGNATURE ((const GVariantType *) "g") | #define G_VARIANT_TYPE_SIGNATURE ((const GVariantType *) "g") | |||
/** | /** | |||
* G_VARIANT_TYPE_VARIANT: | * G_VARIANT_TYPE_VARIANT: | |||
* | * | |||
* The type of a box that contains any other value (including another | * The type of a box that contains any other value (including another | |||
* variant). | * variant). | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_VARIANT ((const GVariantType *) "v") | #define G_VARIANT_TYPE_VARIANT ((const GVariantType *) "v") | |||
/** | /** | |||
* G_VARIANT_TYPE_HANDLE: | * G_VARIANT_TYPE_HANDLE: | |||
* | * | |||
* The type of a 32bit signed integer value, that by convention, is used | * The type of a 32bit signed integer value, that by convention, is used | |||
* as an index into an array of file descriptors that are sent alongside | * as an index into an array of file descriptors that are sent alongside | |||
* a DBus message. | * a D-Bus message. | |||
* | * | |||
* If you are not interacting with DBus, then there is no reason to make | * If you are not interacting with D-Bus, then there is no reason to make | |||
* use of this type. | * use of this type. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_HANDLE ((const GVariantType *) "h") | #define G_VARIANT_TYPE_HANDLE ((const GVariantType *) "h") | |||
/** | /** | |||
* G_VARIANT_TYPE_UNIT: | * G_VARIANT_TYPE_UNIT: | |||
* | * | |||
* The empty tuple type. Has only one instance. Known also as "triv" | * The empty tuple type. Has only one instance. Known also as "triv" | |||
* or "void". | * or "void". | |||
**/ | **/ | |||
skipping to change at line 231 | skipping to change at line 235 | |||
/** | /** | |||
* G_VARIANT_TYPE_DICTIONARY: | * G_VARIANT_TYPE_DICTIONARY: | |||
* | * | |||
* An indefinite type that is a supertype of every dictionary type -- | * An indefinite type that is a supertype of every dictionary type -- | |||
* that is, any array type that has an element type equal to any | * that is, any array type that has an element type equal to any | |||
* dictionary entry type. | * dictionary entry type. | |||
**/ | **/ | |||
#define G_VARIANT_TYPE_DICTIONARY ((const GVariantType *) "a{?*}" ) | #define G_VARIANT_TYPE_DICTIONARY ((const GVariantType *) "a{?*}" ) | |||
/** | /** | |||
* G_VARIANT_TYPE_STRING_ARRAY: | ||||
* | ||||
* The type of an array of strings. | ||||
**/ | ||||
#define G_VARIANT_TYPE_STRING_ARRAY ((const GVariantType *) "as") | ||||
/** | ||||
* G_VARIANT_TYPE_BYTESTRING: | ||||
* | ||||
* The type of an array of bytes. This type is commonly used to pass | ||||
* around strings that may not be valid utf8. In that case, the | ||||
* convention is that the nul terminator character should be included as | ||||
* the last character in the array. | ||||
**/ | ||||
#define G_VARIANT_TYPE_BYTESTRING ((const GVariantType *) "ay") | ||||
/** | ||||
* G_VARIANT_TYPE_BYTESTRING_ARRAY: | ||||
* | ||||
* The type of an array of byte strings (an array of arrays of bytes). | ||||
**/ | ||||
#define G_VARIANT_TYPE_BYTESTRING_ARRAY ((const GVariantType *) "aay") | ||||
/** | ||||
* G_VARIANT_TYPE: | * G_VARIANT_TYPE: | |||
* @type_string: a well-formed #GVariantType type string | * @type_string: a well-formed #GVariantType type string | |||
* | * | |||
* Converts a string to a const #GVariantType. Depending on the | * Converts a string to a const #GVariantType. Depending on the | |||
* current debugging level, this function may perform a runtime check | * current debugging level, this function may perform a runtime check | |||
* to ensure that @string is a valid GVariant type string. | * to ensure that @string is a valid GVariant type string. | |||
* | * | |||
* It is always a programmer error to use this macro with an invalid | * It is always a programmer error to use this macro with an invalid | |||
* type string. | * type string. | |||
* | * | |||
End of changes. 9 change blocks. | ||||
10 lines changed or deleted | 39 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |