diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-06-28 23:22:35 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-08-05 17:47:29 +0100 |
commit | 4bcb26d600e49ddafe8d1d12b33e0801ab243aac (patch) | |
tree | 7da4f97bf1d28e12659b55faaaa49514a847d3e5 /girepository/gitypelib-internal.h | |
parent | 194088c24796792fc13622d0f74a8b0ee819135b (diff) | |
download | gobject-introspection-4bcb26d600e49ddafe8d1d12b33e0801ab243aac.tar.gz |
Use a macro for the missing accessor sentinel value
Easier to read than `0x3ff`.
Diffstat (limited to 'girepository/gitypelib-internal.h')
-rw-r--r-- | girepository/gitypelib-internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/girepository/gitypelib-internal.h b/girepository/gitypelib-internal.h index 2f1b8613..7fe9128f 100644 --- a/girepository/gitypelib-internal.h +++ b/girepository/gitypelib-internal.h @@ -903,6 +903,8 @@ typedef struct { ValueBlob values[]; } EnumBlob; +#define ACCESSOR_SENTINEL 0x3ff + /** * PropertyBlob: * @name: The name of the property. @@ -919,9 +921,9 @@ typedef struct { * This is typically the case when reading lists of statically allocated * things. * @setter: the index of the setter function for this property, if @writable - * is set; if the method is not known, the value will be set to 0x3ff + * is set; if the method is not known, the value will be set to %ACCESSOR_SENTINEL * @getter: ths index of the getter function for this property, if @readable - * is set; if the method is not known, the value will be set to 0x3ff + * is set; if the method is not known, the value will be set to %ACCESSOR_SENTINEL * @reserved: Reserved for future use. * @reserved2: Reserved for future use. * @type: Describes the type of the property. |