瀏覽代碼

Added forgotten typedefs and fixed some that didn't get refactored properly

main
Ludovic 'Archivist' Lagouardette 2 年之前
父節點
當前提交
74998099e4
共有 2 個檔案被更改,包括 12 行新增5 行删除
  1. +4
    -4
      LibSnugLog/public_include/sl/register.h
  2. +8
    -1
      LibSnugLog/public_include/sl/strategies.h

+ 4
- 4
LibSnugLog/public_include/sl/register.h 查看文件

@ -24,10 +24,10 @@ namespace sl {
using output_strategy = sl_output_strategy;
}
#else
typedef struct sl_buffer_strategy buffer_strategy;
typedef struct sl_sink_strategy sink_strategy;
typedef struct sl_overflow_strategy overflow_strategy;
typedef struct sl_output_strategy output_strategy;
typedef struct sl_buffer_strategy sl_buffer_strategy;
typedef struct sl_sink_strategy sl_sink_strategy;
typedef struct sl_overflow_strategy sl_overflow_strategy;
typedef struct sl_output_strategy sl_output_strategy;
#endif
#ifdef __cplusplus

+ 8
- 1
LibSnugLog/public_include/sl/strategies.h 查看文件

@ -34,4 +34,11 @@ enum SL_ROLL_LOGS {
SL_BY_TIME = 1, /**< Will create a new log every n-hours */
SL_BY_SIZE = 2, /**< Will create a new log every n-KB */
SL_NEVER = 0 /**< Will never split the log. Use when doing external logging. */
};
};
#ifndef __cplusplus
typedef enum SL_ON_SINK_FULL SL_ON_SINK_FULL;
typedef enum SL_SINK_IO_TYPE SL_SINK_IO_TYPE;
typedef enum SL_BUFFER_TYPE SL_BUFFER_TYPE;
typedef enum SL_ROLL_LOGS SL_ROLL_LOGS;
#endif

Loading…
取消
儲存