winlin

add srs_core.cpp

@@ -82,7 +82,7 @@ LibSTfile="${LibSTRoot}/libst.a" @@ -82,7 +82,7 @@ LibSTfile="${LibSTRoot}/libst.a"
82 MODULE_ID="CORE" 82 MODULE_ID="CORE"
83 MODULE_DEPENDS=() 83 MODULE_DEPENDS=()
84 ModuleLibIncs=(${LibSTRoot}) 84 ModuleLibIncs=(${LibSTRoot})
85 -MODULE_FILES=("srs_core_log") 85 +MODULE_FILES=("srs_core" "srs_core_log")
86 MODULE_DIR="src/core" . auto/modules.sh 86 MODULE_DIR="src/core" . auto/modules.sh
87 CORE_OBJS="${MODULE_OBJS[@]}" 87 CORE_OBJS="${MODULE_OBJS[@]}"
88 88
  1 +#include <srs_core.hpp>
@@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
5 #include <srs_core.hpp> 5 #include <srs_core.hpp>
6 */ 6 */
7 7
  8 +// user must include the srs_core.hpp before any header.
  9 +
8 // for int64_t print using PRId64 format. 10 // for int64_t print using PRId64 format.
9 #ifndef __STDC_FORMAT_MACROS 11 #ifndef __STDC_FORMAT_MACROS
10 #define __STDC_FORMAT_MACROS 12 #define __STDC_FORMAT_MACROS
@@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
12 #include <errno.h> 12 #include <errno.h>
13 #include <string.h> 13 #include <string.h>
14 14
  15 +// the context for multiple clients.
15 class ILogContext 16 class ILogContext
16 { 17 {
17 public: 18 public:
@@ -3,6 +3,7 @@ file @@ -3,6 +3,7 @@ file
3 ..\main\srs_main_server.cpp, 3 ..\main\srs_main_server.cpp,
4 core readonly separator, 4 core readonly separator,
5 ..\core\srs_core.hpp, 5 ..\core\srs_core.hpp,
  6 + ..\core\srs_core.cpp,
6 ..\core\srs_core_log.hpp, 7 ..\core\srs_core_log.hpp,
7 ..\core\srs_core_log.cpp; 8 ..\core\srs_core_log.cpp;
8 mainconfig 9 mainconfig