diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 103492b4f..8036c7f10 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1144,14 +1144,14 @@ bool_t linphone_call_params_video_enabled(const LinphoneCallParams *cp){ /** * Returns kind of media encryption selected for the call. **/ -enum LinphoneMediaEncryption linphone_call_params_get_media_encryption(const LinphoneCallParams *cp) { +LinphoneMediaEncryption linphone_call_params_get_media_encryption(const LinphoneCallParams *cp) { return cp->media_encryption; } /** * Set requested media encryption for a call. **/ -void linphone_call_params_set_media_encryption(LinphoneCallParams *cp, enum LinphoneMediaEncryption e) { +void linphone_call_params_set_media_encryption(LinphoneCallParams *cp, LinphoneMediaEncryption e) { cp->media_encryption = e; } diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 1868d1db5..0ce449e03 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -6085,7 +6085,7 @@ bool_t linphone_core_media_encryption_supported(const LinphoneCore *lc, Linphone return FALSE; } -int linphone_core_set_media_encryption(LinphoneCore *lc, enum LinphoneMediaEncryption menc) { +int linphone_core_set_media_encryption(LinphoneCore *lc, LinphoneMediaEncryption menc) { const char *type="none"; int ret=0; if (menc == LinphoneMediaEncryptionSRTP){ diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 6e4d0b53a..92045740f 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -242,17 +242,19 @@ typedef struct _LinphoneCallLog LinphoneCallLog; /** * Enum describing type of media encryption types. + * @ingroup media_parameters **/ -enum LinphoneMediaEncryption { - LinphoneMediaEncryptionNone, - LinphoneMediaEncryptionSRTP, - LinphoneMediaEncryptionZRTP +enum _LinphoneMediaEncryption { + LinphoneMediaEncryptionNone, /**< No media encryption is used */ + LinphoneMediaEncryptionSRTP, /**< Use SRTP media encryption */ + LinphoneMediaEncryptionZRTP /**< Use ZRTP media encryption */ }; /** * Enum describing type of media encryption types. + * @ingroup media_parameters **/ -typedef enum LinphoneMediaEncryption LinphoneMediaEncryption; +typedef enum _LinphoneMediaEncryption LinphoneMediaEncryption; /*public: */ LINPHONE_PUBLIC LinphoneAddress *linphone_call_log_get_from(LinphoneCallLog *cl); @@ -845,14 +847,14 @@ typedef struct _LinphoneChatMessage LinphoneChatMessage; typedef struct _LinphoneChatRoom LinphoneChatRoom; /** - *LinphoneChatMessageState is used to notify if messages have been succesfully delivered or not. + * LinphoneChatMessageState is used to notify if messages have been succesfully delivered or not. */ -typedef enum _LinphoneChatMessageStates { - LinphoneChatMessageStateIdle, /** Use by linphone_friend_set_inc_subscribe_policy() */ -typedef enum { +typedef enum _LinphoneSubscribePolicy { /** * Does not automatically accept an incoming subscription request. * This policy implies that a decision has to be taken for each incoming subscription request notified by callback LinphoneCoreVTable.new_subscription_request @@ -50,7 +49,7 @@ typedef enum { * Automatically accepts a subscription request. */ LinphoneSPAccept -}LinphoneSubscribePolicy; +} LinphoneSubscribePolicy; /** * Enum describing remote friend status