Skip to content

Commit

Permalink
Allow forward declaration of log args
Browse files Browse the repository at this point in the history
  • Loading branch information
ncteisen committed Dec 13, 2017
1 parent 414e955 commit 934a3ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/grpc/support/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ GPRAPI void gpr_log_verbosity_init(void);
/** Log overrides: applications can use this API to intercept logging calls
and use their own implementations */

typedef struct {
struct gpr_log_func_args {
const char* file;
int line;
gpr_log_severity severity;
const char* message;
} gpr_log_func_args;
};

typedef struct gpr_log_func_args gpr_log_func_args;

typedef void (*gpr_log_func)(gpr_log_func_args* args);
GPRAPI void gpr_set_log_function(gpr_log_func func);
Expand Down

0 comments on commit 934a3ce

Please sign in to comment.