Quellcode durchsuchen

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

main
Ludovic 'Archivist' Lagouardette vor 2 Jahren
Ursprung
Commit
74998099e4
2 geänderte Dateien mit 12 neuen und 5 gelöschten Zeilen
  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 Datei anzeigen

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

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

Laden…
Abbrechen
Speichern