Browse Source

update: header file

master
dnomd343 2 years ago
parent
commit
8fcca3b5bb
  1. 2
      include/common.h
  2. 4
      include/utils/logger.h
  3. 1
      src/common.c
  4. 2
      src/utils/CMakeLists.txt
  5. 3
      src/utils/logger.c
  6. 2
      src/utils/network.c

2
include/common.h

@ -1,7 +1,7 @@
#ifndef _COMMON_H_
#define _COMMON_H_
#define VERSION "0.9.4"
#define VERSION "0.9.5"
#define RANDOM_PORT_START 41952
#define RANDOM_PORT_END 65535

4
include/utils/logger.h

@ -1,10 +1,6 @@
#ifndef _LOG_H
#define _LOG_H
#include <time.h>
#include <stdio.h>
#include <stdarg.h>
enum {
LOG_DEBUG,
LOG_INFO,

1
src/common.c

@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "logger.h"

2
src/utils/CMakeLists.txt

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
aux_source_directory(. utils_src)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/utils utils_src)
add_library(utils ${utils_src})

3
src/utils/logger.c

@ -1,4 +1,7 @@
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "logger.h"
int LOG_LEVEL = LOG_INFO; // default log level

2
src/utils/network.c

@ -1,11 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "network.h"
#include "logger.h"

Loading…
Cancel
Save