1 2 3 4 5 6 7
typedef enum { INFO } LogLevel; typedef struct { LogLevel level; } Logger; void info(Logger l, const char *name, const char *str, ...);