Move MatrixAPIEventFormat enum to matrix-api-types.h

This commit is contained in:
Gergely Polonkai 2016-01-07 16:57:10 +01:00
parent 90a360ecd6
commit 512020a0ea
6 changed files with 30 additions and 24 deletions

View File

@ -19,6 +19,9 @@ matrix_client_get_type
<FILE>matrix-api-types</FILE> <FILE>matrix-api-types</FILE>
<TITLE>Fundamental types for MatrixAPI</TITLE> <TITLE>Fundamental types for MatrixAPI</TITLE>
<SUBSECTION>
MatrixAPIEventFormat
<SUBSECTION> <SUBSECTION>
MatrixAPIFilterRules MatrixAPIFilterRules
matrix_api_filter_rules_new matrix_api_filter_rules_new
@ -70,6 +73,8 @@ matrix_api_room_filter_get_json_node
matrix_api_room_filter_get_json_data matrix_api_room_filter_get_json_data
<SUBSECTION Standard> <SUBSECTION Standard>
MATRIX_TYPE_API_EVENT_FORMAT
matrix_api_event_format_get_type
MATRIX_TYPE_API_FILTER_RULES MATRIX_TYPE_API_FILTER_RULES
matrix_api_filter_rules_get_type matrix_api_filter_rules_get_type
MATRIX_TYPE_API_ROOM_FILTER MATRIX_TYPE_API_ROOM_FILTER
@ -184,7 +189,6 @@ MatrixAPIError
MATRIX_API_ERROR MATRIX_API_ERROR
<SUBSECTION> <SUBSECTION>
MatrixAPIEventFormat
MatrixAPIFilter MatrixAPIFilter
MatrixAPIStateEvent MatrixAPIStateEvent
MatrixAPI3PidCredential MatrixAPI3PidCredential
@ -202,8 +206,6 @@ MatrixApiPrivate
matrix_api_get_type matrix_api_get_type
MATRIX_TYPE_API_EVENT_DIRECTION MATRIX_TYPE_API_EVENT_DIRECTION
matrix_api_event_direction_get_type matrix_api_event_direction_get_type
MATRIX_TYPE_API_EVENT_FORMAT
matrix_api_event_format_get_type
MATRIX_TYPE_API_PRESENCE MATRIX_TYPE_API_PRESENCE
matrix_api_presence_get_type matrix_api_presence_get_type
MATRIX_TYPE_API_PUSHER_CONDITION_KIND MATRIX_TYPE_API_PUSHER_CONDITION_KIND

View File

@ -15,7 +15,10 @@ INST_H_BUILT_FILES = \
matrix-enumtypes.h \ matrix-enumtypes.h \
$(NULL) $(NULL)
matrix_enum_headers = matrix-api.h matrix_enum_headers = \
matrix-api.h \
matrix-api-types.h \
$(NULL)
libmatrix_glib_0_0_la_SOURCES = \ libmatrix_glib_0_0_la_SOURCES = \
matrix-client.c \ matrix-client.c \

View File

@ -28,6 +28,20 @@
* communication with the homeserver. * communication with the homeserver.
*/ */
/**
* MatrixAPIEventFormat:
* @MATRIX_API_EVENT_FORMAT_DEFAULT: event format will be omitted from
* the filter, so the server will
* use its default (usually
* @MATRIX_API_EVENT_FORMAT_FEDERATION)
* @MATRIX_API_EVENT_FORMAT_CLIENT: return the events in a format
* suitable for clients
* @MATRIX_API_EVENT_FORMAT_FEDERATION: return the raw event as
* receieved over federation
*
* Event format received when synchronizing.
*/
/** /**
* MatrixAPIFilterRules: (ref-func matrix_api_filter_rules_ref) (unref-func matrix_api_filter_rules_unref) * MatrixAPIFilterRules: (ref-func matrix_api_filter_rules_ref) (unref-func matrix_api_filter_rules_unref)
* *
@ -757,6 +771,7 @@ matrix_api_filter_rules_get_json_data(MatrixAPIFilterRules *rules,
json_node_free(node); json_node_free(node);
data = json_generator_to_data(generator, datalen); data = json_generator_to_data(generator, datalen);
g_object_unref(generator);
return data; return data;
} }

View File

@ -24,6 +24,12 @@
G_BEGIN_DECLS G_BEGIN_DECLS
typedef enum {
MATRIX_API_EVENT_FORMAT_DEFAULT,
MATRIX_API_EVENT_FORMAT_CLIENT,
MATRIX_API_EVENT_FORMAT_FEDERATION
} MatrixAPIEventFormat;
typedef struct _MatrixAPIFilterRules MatrixAPIFilterRules; typedef struct _MatrixAPIFilterRules MatrixAPIFilterRules;
GType matrix_api_filter_rules_get_type(void); GType matrix_api_filter_rules_get_type(void);

View File

@ -237,20 +237,6 @@
* Receipt types of acknowledgment. * Receipt types of acknowledgment.
*/ */
/**
* MatrixAPIEventFormat:
* @MATRIX_API_EVENT_FORMAT_DEFAULT: event format will be omitted from
* the filter, so the server will
* use its default (usually
* @MATRIX_API_EVENT_FORMAT_FEDERATION)
* @MATRIX_API_EVENT_FORMAT_CLIENT: return the events in a format
* suitable for clients
* @MATRIX_API_EVENT_FORMAT_FEDERATION: return the raw event as
* receieved over federation
*
* Event format received when synchronizing.
*/
/** /**
* MatrixAPIPusher: * MatrixAPIPusher:
* @app_display_name: a string that will allow the user to identify * @app_display_name: a string that will allow the user to identify

View File

@ -82,12 +82,6 @@ typedef enum {
MATRIX_API_EVENT_DIRECTION_BACKWARD MATRIX_API_EVENT_DIRECTION_BACKWARD
} MatrixAPIEventDirection; } MatrixAPIEventDirection;
typedef enum {
MATRIX_API_EVENT_FORMAT_DEFAULT,
MATRIX_API_EVENT_FORMAT_CLIENT,
MATRIX_API_EVENT_FORMAT_FEDERATION
} MatrixAPIEventFormat;
typedef enum { typedef enum {
MATRIX_API_RECEIPT_TYPE_READ MATRIX_API_RECEIPT_TYPE_READ
} MatrixAPIReceiptType; } MatrixAPIReceiptType;