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/"
68 #define ureport_server_config_init libreport_ureport_server_config_init
77 #define ureport_server_config_destroy libreport_ureport_server_config_destroy
89 #define ureport_server_config_load libreport_ureport_server_config_load
92 map_string_t *settings);
100 #define ureport_server_config_set_url libreport_ureport_server_config_set_url
112 #define ureport_server_config_set_client_auth libreport_ureport_server_config_set_client_auth
115 const char *client_auth);
124 #define ureport_server_config_set_basic_auth libreport_ureport_server_config_set_basic_auth
127 const char *username,
const char *password);
144 const char *http_auth_pref);
172 #define ureport_server_response_from_reply libreport_ureport_server_response_from_reply
185 #define ureport_server_response_save_in_dump_dir libreport_ureport_server_response_save_in_dump_dir
188 const char *dump_dir_path,
198 #define ureport_server_response_get_report_url libreport_ureport_server_response_get_report_url
208 #define ureport_server_response_free libreport_ureport_server_response_free
220 #define ureport_do_post libreport_ureport_do_post
223 const char *url_sfx);
232 #define ureport_submit libreport_ureport_submit
245 ureport_json_attachment_new(
const char *bthash,
const char *type,
const char *data);
256 #define ureport_attach_string libreport_ureport_attach_string
258 ureport_attach_string(
const char *bthash,
const char *type,
const char *data,
270 #define ureport_attach_int libreport_ureport_attach_int
272 ureport_attach_int(
const char *bthash,
const char *type,
int data,
281 #define ureport_from_dump_dir libreport_ureport_from_dump_dir
283 ureport_from_dump_dir(
const char *dump_dir_path);
285 #define ureport_from_dump_dir_ext libreport_ureport_from_dump_dir_ext
286 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
char * ur_cert_authority_cert
Certificate authority certificate.