~ubuntu-branches/ubuntu/vivid/whoopsie/vivid-proposed

« back to all changes in this revision

Viewing changes to src/identifier.h

  • Committer: Package Import Robot
  • Author(s): Evan Dandrea, Brian Murray, John Lenton, Ted Gould
  • Date: 2014-06-02 11:10:40 UTC
  • Revision ID: package-import@ubuntu.com-20140602111040-q81ojkfwo7w6gx36
Tags: 0.2.27
[ Brian Murray ]
* Log that we are offline because we are using a network connection where
  one may have to pay for data usage.

[ John Lenton ]
* Ask ofono for the IMEI as an id source.
* Don't return null string during session start (LP: #1311571).
* Fix attempting to remove a source that has already been removed.

[ Ted Gould ]
* Don't break if whoopsie is running (i.e. developer system).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
void whoopsie_identifier_generate (char** res, GError** error);
 
2
void whoopsie_identifier_get_imei (char** res, GError** error);
2
3
void whoopsie_identifier_get_mac_address (char** res, GError** error);
3
4
void whoopsie_identifier_get_system_uuid (char** res, GError** error);
4
5
void whoopsie_identifier_sha512 (char* source, char* res, GError** error);
5
6
void whoopsie_hex_to_char (char* buf, const char *str, int len);
6
7
#define HASHLEN 128
 
8
 
 
9
/* for testing: */
 
10
void whoopsie_identifier_set_ofono_name (char* name) __attribute__ ((__warning__ ("Only for testing")));
 
11
void whoopsie_identifier_fail_next_get_mac (gint how) __attribute__ ((__warning__ ("Only for testing")));
 
12
void whoopsie_identifier_fail_next_get_uuid () __attribute__ ((__warning__ ("Only for testing")));
 
13
#define WHOOPSIE_FAIL_GENERIC 1
 
14
#define WHOOPSIE_FAIL_MAC_SIOCGIFFLAGS 2
 
15
#define WHOOPSIE_FAILED_BY_REQUEST 42