Port MatrixHistoryVisibility to C

This commit is contained in:
2017-11-02 11:35:01 +01:00
parent 11d18ef27a
commit 1f0fdb79e3
4 changed files with 31 additions and 33 deletions

View File

@@ -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
*/

View File

@@ -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__ */

View File

@@ -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
*/