summaryrefslogtreecommitdiff
path: root/toxav/msi.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 12:53:12 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-12 20:07:18 +0000
commit4ed6e5999226f9061f546108c5be72fe6f21a775 (patch)
treee716af08ec232c8d01b526d7b88c5ed502cd6a77 /toxav/msi.h
parent767ccbb387a462c9bc21aaf22d2c3d3358c147b8 (diff)
Fix enumerator names to comply with toxcore naming standards.
Diffstat (limited to 'toxav/msi.h')
-rw-r--r--toxav/msi.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/toxav/msi.h b/toxav/msi.h
index b2c15567..bf3218e0 100644
--- a/toxav/msi.h
+++ b/toxav/msi.h
@@ -33,24 +33,24 @@
33 * Error codes. 33 * Error codes.
34 */ 34 */
35typedef enum { 35typedef enum {
36 msi_ENone, 36 MSI_E_NONE,
37 msi_EInvalidMessage, 37 MSI_E_INVALID_MESSAGE,
38 msi_EInvalidParam, 38 MSI_E_INVALID_PARAM,
39 msi_EInvalidState, 39 MSI_E_INVALID_STATE,
40 msi_EStrayMessage, 40 MSI_E_STRAY_MESSAGE,
41 msi_ESystem, 41 MSI_E_SYSTEM,
42 msi_EHandle, 42 MSI_E_HANDLE,
43 msi_EUndisclosed, /* NOTE: must be last enum otherwise parsing will not work */ 43 MSI_E_UNDISCLOSED, /* NOTE: must be last enum otherwise parsing will not work */
44} MSIError; 44} MSIError;
45 45
46/** 46/**
47 * Supported capabilities 47 * Supported capabilities
48 */ 48 */
49typedef enum { 49typedef enum {
50 msi_CapSAudio = 4, /* sending audio */ 50 MSI_CAP_S_AUDIO = 4, /* sending audio */
51 msi_CapSVideo = 8, /* sending video */ 51 MSI_CAP_S_VIDEO = 8, /* sending video */
52 msi_CapRAudio = 16, /* receiving audio */ 52 MSI_CAP_R_AUDIO = 16, /* receiving audio */
53 msi_CapRVideo = 32, /* receiving video */ 53 MSI_CAP_R_VIDEO = 32, /* receiving video */
54} MSICapabilities; 54} MSICapabilities;
55 55
56 56
@@ -58,22 +58,22 @@ typedef enum {
58 * Call state identifiers. 58 * Call state identifiers.
59 */ 59 */
60typedef enum { 60typedef enum {
61 msi_CallInactive, /* Default */ 61 MSI_CALL_INACTIVE, /* Default */
62 msi_CallActive, 62 MSI_CALL_ACTIVE,
63 msi_CallRequesting, /* when sending call invite */ 63 MSI_CALL_REQUESTING, /* when sending call invite */
64 msi_CallRequested, /* when getting call invite */ 64 MSI_CALL_REQUESTED, /* when getting call invite */
65} MSICallState; 65} MSICallState;
66 66
67/** 67/**
68 * Callbacks ids that handle the states 68 * Callbacks ids that handle the states
69 */ 69 */
70typedef enum { 70typedef enum {
71 msi_OnInvite, /* Incoming call */ 71 MSI_ON_INVITE, /* Incoming call */
72 msi_OnStart, /* Call (RTP transmission) started */ 72 MSI_ON_START, /* Call (RTP transmission) started */
73 msi_OnEnd, /* Call that was active ended */ 73 MSI_ON_END, /* Call that was active ended */
74 msi_OnError, /* On protocol error */ 74 MSI_ON_ERROR, /* On protocol error */
75 msi_OnPeerTimeout, /* Peer timed out; stop the call */ 75 MSI_ON_PEERTIMEOUT, /* Peer timed out; stop the call */
76 msi_OnCapabilities, /* Peer requested capabilities change */ 76 MSI_ON_CAPABILITIES, /* Peer requested capabilities change */
77} MSICallbackID; 77} MSICallbackID;
78 78
79/** 79/**