Port MatrixHistoryVisibility to C
This commit is contained in:
		| @@ -253,3 +253,17 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error); | ||||
|  * event_ids that are in that group, as well as potentially other | ||||
|  * metadata about the group. | ||||
|  */ | ||||
|  | ||||
| /** | ||||
|  * MatrixHistoryVisibility: | ||||
|  * @MATRIX_HISTORY_VISIBILITY_UNKNOWN: represents a value unknown to this library | ||||
|  * @MATRIX_HISTORY_VISIBILITY_INVITED: only room members can see the room history, and only what | ||||
|  *     happened after they got an invitation | ||||
|  * @MATRIX_HISTORY_VISIBILITY_JOINED: only room members can see the room history, and only what | ||||
|  *     happened after they joined | ||||
|  * @MATRIX_HISTORY_VISIBILITY_SHARED: only room members can see the room history, but they see all | ||||
|  *     of it | ||||
|  * @MATRIX_HISTORY_VISIBILITY_WORLD_READABLE: anyone can see the room history | ||||
|  * | ||||
|  * Room history visibility | ||||
|  */ | ||||
|   | ||||
| @@ -171,4 +171,12 @@ typedef enum { | ||||
|     MATRIX_SEARCH_GROUP_BY_SENDER | ||||
| } MatrixSearchGroupBy; | ||||
|  | ||||
| typedef enum { | ||||
|     MATRIX_HISTORY_VISIBILITY_UNKNOWN, | ||||
|     MATRIX_HISTORY_VISIBILITY_INVITED, | ||||
|     MATRIX_HISTORY_VISIBILITY_JOINED, | ||||
|     MATRIX_HISTORY_VISIBILITY_SHARED, | ||||
|     MATRIX_HISTORY_VISIBILITY_WORLD_READABLE | ||||
| } MatrixHistoryVisibility; | ||||
|  | ||||
| #endif  /* __MATRIX_TYPE_H__ */ | ||||
|   | ||||
| @@ -17,39 +17,6 @@ | ||||
|  */ | ||||
|  | ||||
| namespace Matrix { | ||||
|     /** | ||||
|      * Room history visibility | ||||
|      */ | ||||
|     public enum HistoryVisibility { | ||||
|         /** | ||||
|          * represents a value unknown to this library | ||||
|          */ | ||||
|         UNKNOWN, | ||||
|  | ||||
|         /** | ||||
|          * only room members can see the room history, and only what | ||||
|          * happened after they got an invitation | ||||
|          */ | ||||
|         INVITED, | ||||
|  | ||||
|         /** | ||||
|          * only room members can see the room history, and only what | ||||
|          * happened after they joined | ||||
|          */ | ||||
|         JOINED, | ||||
|  | ||||
|         /** | ||||
|          * only room members can see the room history, but they see | ||||
|          * all of it | ||||
|          */ | ||||
|         SHARED, | ||||
|  | ||||
|         /** | ||||
|          * anyone can see the room history | ||||
|          */ | ||||
|         WORLD_READABLE; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Room guest access | ||||
|      */ | ||||
|   | ||||
| @@ -176,6 +176,15 @@ namespace Matrix { | ||||
|         SENDER; | ||||
|     } | ||||
|  | ||||
|     [CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_HISTORY_VISIBILITY_")] | ||||
|     public enum HistoryVisibility { | ||||
|         UNKNOWN, | ||||
|         INVITED, | ||||
|         JOINED, | ||||
|         SHARED, | ||||
|         WORLD_READABLE; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * The major version number of the Matrix.org GLib SDK. | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user