Port MatrixGuestAccess to C
This commit is contained in:
@@ -267,3 +267,12 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
||||
*
|
||||
* Room history visibility
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixGuestAccess:
|
||||
* @MATRIX_GUEST_ACCESS_UNKNOWN: represents a value unknown to this library
|
||||
* @MATRIX_GUEST_ACCESS_CAN_JOIN: guest users are allowed to access the room
|
||||
* @MATRIX_GUEST_ACCESS_FORBIDDEN: guest users are not allowed to access the room
|
||||
*
|
||||
* Room guest access
|
||||
*/
|
||||
|
@@ -179,4 +179,10 @@ typedef enum {
|
||||
MATRIX_HISTORY_VISIBILITY_WORLD_READABLE
|
||||
} MatrixHistoryVisibility;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_GUEST_ACCESS_UNKNOWN,
|
||||
MATRIX_GUEST_ACCESS_CAN_JOIN,
|
||||
MATRIX_GUEST_ACCESS_FORBIDDEN
|
||||
} MatrixGuestAccess;
|
||||
|
||||
#endif /* __MATRIX_TYPE_H__ */
|
||||
|
@@ -17,26 +17,6 @@
|
||||
*/
|
||||
|
||||
namespace Matrix {
|
||||
/**
|
||||
* Room guest access
|
||||
*/
|
||||
public enum GuestAccess {
|
||||
/**
|
||||
* represents a value unknown to this library
|
||||
*/
|
||||
UNKNOWN,
|
||||
|
||||
/**
|
||||
* guest users are allowed to access the room
|
||||
*/
|
||||
CAN_JOIN,
|
||||
|
||||
/**
|
||||
* guest users are not allowed to access the room
|
||||
*/
|
||||
FORBIDDEN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call offer types
|
||||
*/
|
||||
|
Reference in New Issue
Block a user