winlin

add srs_core.cpp

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