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/"
67 #define ureport_server_config_init libreport_ureport_server_config_init
76 #define ureport_server_config_destroy libreport_ureport_server_config_destroy
88 #define ureport_server_config_load libreport_ureport_server_config_load
91 map_string_t *settings);
99 #define ureport_server_config_set_url libreport_ureport_server_config_set_url
111 #define ureport_server_config_set_client_auth libreport_ureport_server_config_set_client_auth
114 const char *client_auth);
123 #define ureport_server_config_set_basic_auth libreport_ureport_server_config_set_basic_auth
126 const char *username,
const char *password);
154 #define ureport_server_response_from_reply libreport_ureport_server_response_from_reply
167 #define ureport_server_response_save_in_dump_dir libreport_ureport_server_response_save_in_dump_dir
170 const char *dump_dir_path,
180 #define ureport_server_response_get_report_url libreport_ureport_server_response_get_report_url
190 #define ureport_server_response_free libreport_ureport_server_response_free
202 #define ureport_do_post libreport_ureport_do_post
205 const char *url_sfx);
214 #define ureport_submit libreport_ureport_submit
227 ureport_json_attachment_new(
const char *bthash,
const char *type,
const char *data);
238 #define ureport_attach_string libreport_ureport_attach_string
240 ureport_attach_string(
const char *bthash,
const char *type,
const char *data,
252 #define ureport_attach_int libreport_ureport_attach_int
254 ureport_attach_int(
const char *bthash,
const char *type,
int data,
263 #define ureport_from_dump_dir libreport_ureport_from_dump_dir
265 ureport_from_dump_dir(
const char *dump_dir_path);
267 #define ureport_from_dump_dir_ext libreport_ureport_from_dump_dir_ext
268 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.
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