Explorar el Código

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

main
Ludovic 'Archivist' Lagouardette hace 1 año
padre
commit
74998099e4
Se han modificado 2 ficheros con 12 adiciones y 5 borrados
  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 Ver fichero

@ -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 Ver fichero

@ -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

Cargando…
Cancelar
Guardar