Browse Source

Add explicity type name to enums in rtcDirection

Filip Klembara 4 years ago
parent
commit
5928b8d206
2 changed files with 9 additions and 9 deletions
  1. 5 5
      include/rtc/rtc.h
  2. 4 4
      src/capi.cpp

+ 5 - 5
include/rtc/rtc.h

@@ -90,11 +90,11 @@ typedef enum {
 } rtcCodec;
 
 typedef enum {
-    RTC_SENDONLY,
-    RTC_RECVONLY,
-    RTC_SENDRECV,
-    RTC_INACTIVE,
-    RTC_UNKNOWN
+    RTC_DIRECTION_UNKNOWN,
+    RTC_DIRECTION_SENDONLY,
+    RTC_DIRECTION_RECVONLY,
+    RTC_DIRECTION_SENDRECV,
+    RTC_DIRECTION_INACTIVE
 } rtcDirection;
 
 #endif // RTC_ENABLE_MEDIA

+ 4 - 4
src/capi.cpp

@@ -179,16 +179,16 @@ Description::Direction rtcDirectionToDirection(rtcDirection * _direction) {
     Description::Direction direction = Description::Direction::SendOnly;
     if (_direction) {
         switch (*_direction) {
-            case RTC_SENDONLY:
+            case RTC_DIRECTION_SENDONLY:
                 direction = Description::Direction::SendOnly;
                 break;
-            case RTC_RECVONLY:
+            case RTC_DIRECTION_RECVONLY:
                 direction = Description::Direction::RecvOnly;
                 break;
-            case RTC_SENDRECV:
+            case RTC_DIRECTION_SENDRECV:
                 direction = Description::Direction::SendRecv;
                 break;
-            case RTC_INACTIVE:
+            case RTC_DIRECTION_INACTIVE:
                 direction = Description::Direction::Inactive;
                 break;
             default: