26 #include "internal_libreport.h" 28 #define UREPORT_CONF_FILE_PATH PLUGINS_CONF_DIR"/ureport.conf" 30 #define UREPORT_OPTION_VALUE_FROM_CONF(settings, opt, var, tr) do { const char *value = getenv("uReport_"opt); \ 31 if (!value) { value = get_map_string_item_or_NULL(settings, opt); } if (value) { var = tr(value); } \ 34 #define UREPORT_SUBMIT_ACTION "reports/new/" 35 #define UREPORT_ATTACH_ACTION "reports/attach/" 40 enum ureport_preferences_flags
42 UREPORT_PREF_FLAG_RETURN_ON_FAILURE = 0x1,
77 #define ureport_server_config_init libreport_ureport_server_config_init 86 #define ureport_server_config_destroy libreport_ureport_server_config_destroy 98 #define ureport_server_config_load libreport_ureport_server_config_load 101 map_string_t *settings);
109 #define ureport_server_config_set_url libreport_ureport_server_config_set_url 121 #define ureport_server_config_set_client_auth libreport_ureport_server_config_set_client_auth 124 const char *client_auth);
133 #define ureport_server_config_set_basic_auth libreport_ureport_server_config_set_basic_auth 136 const char *username,
const char *password);
153 const char *http_auth_pref);
181 #define ureport_server_response_from_reply libreport_ureport_server_response_from_reply 194 #define ureport_server_response_save_in_dump_dir libreport_ureport_server_response_save_in_dump_dir 197 const char *dump_dir_path,
207 #define ureport_server_response_get_report_url libreport_ureport_server_response_get_report_url 217 #define ureport_server_response_free libreport_ureport_server_response_free 229 #define ureport_do_post libreport_ureport_do_post 232 const char *url_sfx);
241 #define ureport_submit libreport_ureport_submit 254 ureport_json_attachment_new(
const char *bthash,
const char *type,
const char *data);
265 #define ureport_attach_string libreport_ureport_attach_string 267 ureport_attach_string(
const char *bthash,
const char *type,
const char *data,
279 #define ureport_attach_int libreport_ureport_attach_int 281 ureport_attach_int(
const char *bthash,
const char *type,
int data,
290 #define ureport_from_dump_dir libreport_ureport_from_dump_dir 292 ureport_from_dump_dir(
const char *dump_dir_path);
294 #define ureport_from_dump_dir_ext libreport_ureport_from_dump_dir_ext 295 char *ureport_from_dump_dir_ext(
const char *dump_dir_path,
char * urr_bthash
uReport's server side identifier
map_string_t * ur_http_headers
Additional HTTP headers.
struct ureport_preferences ur_prefs
configuration for uReport generation
GList * urp_auth_items
list of file names included in 'auth' key
char * ur_password
password for basic HTTP auth
char * ur_url
Web service URL.
bool urr_is_error
True if server replied with error response.
GList * urr_reported_to_list
char * urr_value
Value of the response.
int urp_flags
See enum ureport_preferences_flags.
char * urr_message
Additional message.
char * ur_client_key
Private key for the certificate.
bool ur_ssl_verify
Verify HOST and PEER certificates.
char * urr_solution
URL pointing to solution for uReport.
char * ur_username
username for basic HTTP auth
char * ur_cert_authority_cert
Certificate authority certificate.