breakpad_init初始化接口增加version

This commit is contained in:
fengweihao
2020-10-19 16:24:45 +08:00
parent a36312c122
commit 81eef836b6
4 changed files with 7 additions and 7 deletions

View File

@@ -46,6 +46,6 @@ extern void mesa_logging_print(int log_level, const char *module, const char *ms
#define mesa_runtime_log(level, module, ...) mesa_log(logging_sc_lid.debug_switch, level, module, __VA_ARGS__)
void cert_syslog_init(const char *config);
void cert_syslog_init(const char *config, const char * version);
#endif

View File

@@ -31,7 +31,7 @@ void mesa_logging_print(int log_level, const char *module, const char *msg)
return;
}
void cert_syslog_init(const char *config)
void cert_syslog_init(const char *config, const char * version)
{
struct breakpad_instance *breakpad;
@@ -56,7 +56,7 @@ void cert_syslog_init(const char *config)
mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "Log module initialization");
}
breakpad = breakpad_init(config, "breakpad", logging_sc_lid.run_log_handle);
breakpad = breakpad_init(config, "breakpad", logging_sc_lid.run_log_handle, version);
if(breakpad == NULL)
{
mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Failed at starting breakpad.");

View File

@@ -83,14 +83,14 @@ int main(int argc, char **argv)
break;
}
}
cert_syslog_init(CERT_BASIC_CFG);
cert_syslog_init(CERT_BASIC_CFG, version());
cert_init_config(CERT_BASIC_CFG);
cert_preview();
mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "Cert server init success");
cert_session_init();
signal(SIGINT, sigproc);

View File

@@ -152,7 +152,7 @@ set_property(TARGET MESA_field_stat PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_
set_property(TARGET MESA_field_stat PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${MESA_FRAMEWORK_INCLUDE_DIR})
add_library(breakpad_mini SHARED IMPORTED GLOBAL)
set_property(TARGET breakpad_mini PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_LIB_DIR}/lib/libbreakpad_mini.so)
set_property(TARGET breakpad_mini PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_LIB_DIR}/libbreakpad_mini.so)
set_property(TARGET breakpad_mini PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${MESA_FRAMEWORK_INCLUDE_DIR})