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 = g_hash_table_lookup(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,
97 GHashTable *settings);
117 const char *client_auth);
128 const char *username,
const char *password);
144 const char *http_auth_pref);
186 const char *dump_dir_path,
218 const char *url_sfx);
239 ureport_json_attachment_new(
const char *bthash,
const char *type,
const char *data);
271 ...) G_GNUC_PRINTF(4, 5);
279 char *libreport_ureport_from_dump_dir_ext(const
char *dump_dir_path,
int urp_flags
See enum ureport_preferences_flags.
GList * urp_auth_items
list of file names included in 'auth' key
char * ur_client_key
Private key for the certificate.
struct ureport_preferences ur_prefs
configuration for uReport generation
char * ur_url
Web service URL.
char * ur_cert_authority_cert
Certificate authority certificate.
bool ur_ssl_verify
Verify HOST and PEER certificates.
char * ur_username
username for basic HTTP auth
char * ur_password
password for basic HTTP auth
char * urr_bthash
uReport's server side identifier
bool urr_is_error
True if server replied with error response.
char * urr_solution
URL pointing to solution for uReport.
char * urr_message
Additional message.
GList * urr_reported_to_list
char * urr_value
Value of the response.