aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-12-13 09:25:59 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-12-13 11:15:50 -0800
commit934a3cebc4c32bd7e4e98964e21976f9cfc4921e (patch)
tree4f4ae8a205e6fbdad674d0cc59c3b0f81ef3a9b9 /include/grpc/support
parent414e955c399d3b125dec847610db3ee4631007cb (diff)
Allow forward declaration of log args
Diffstat (limited to 'include/grpc/support')
-rw-r--r--include/grpc/support/log.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc/support/log.h b/include/grpc/support/log.h
index 9cce4b1ae7..a8371cbd48 100644
--- a/include/grpc/support/log.h
+++ b/include/grpc/support/log.h
@@ -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);