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 = libreport_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,
97 map_string_t *settings);
118 const char *client_auth);
129 const char *username,
const char *password);
146 const char *http_auth_pref);
188 const char *dump_dir_path,
220 const char *url_sfx);
241 ureport_json_attachment_new(
const char *bthash,
const char *type,
const char *data);
273 ...) G_GNUC_PRINTF(4, 5);
282 libreport_ureport_from_dump_dir(const
char *dump_dir_path);
284 char *libreport_ureport_from_dump_dir_ext(const
char *dump_dir_path,