Move MatrixAPIEventFormat enum to matrix-api-types.h
This commit is contained in:
@@ -15,7 +15,10 @@ INST_H_BUILT_FILES = \
|
||||
matrix-enumtypes.h \
|
||||
$(NULL)
|
||||
|
||||
matrix_enum_headers = matrix-api.h
|
||||
matrix_enum_headers = \
|
||||
matrix-api.h \
|
||||
matrix-api-types.h \
|
||||
$(NULL)
|
||||
|
||||
libmatrix_glib_0_0_la_SOURCES = \
|
||||
matrix-client.c \
|
||||
|
@@ -28,6 +28,20 @@
|
||||
* 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)
|
||||
*
|
||||
@@ -757,6 +771,7 @@ matrix_api_filter_rules_get_json_data(MatrixAPIFilterRules *rules,
|
||||
json_node_free(node);
|
||||
|
||||
data = json_generator_to_data(generator, datalen);
|
||||
g_object_unref(generator);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
@@ -24,6 +24,12 @@
|
||||
|
||||
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;
|
||||
|
||||
GType matrix_api_filter_rules_get_type(void);
|
||||
|
@@ -237,20 +237,6 @@
|
||||
* 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:
|
||||
* @app_display_name: a string that will allow the user to identify
|
||||
|
@@ -82,12 +82,6 @@ typedef enum {
|
||||
MATRIX_API_EVENT_DIRECTION_BACKWARD
|
||||
} MatrixAPIEventDirection;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_API_EVENT_FORMAT_DEFAULT,
|
||||
MATRIX_API_EVENT_FORMAT_CLIENT,
|
||||
MATRIX_API_EVENT_FORMAT_FEDERATION
|
||||
} MatrixAPIEventFormat;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_API_RECEIPT_TYPE_READ
|
||||
} MatrixAPIReceiptType;
|
||||
|
Reference in New Issue
Block a user