~daisy-pluckers/whoopsie/trunk

« back to all changes in this revision

Viewing changes to src/identifier.h

  • Committer: Brian Murray
  • Date: 2022-11-14 19:11:19 UTC
  • Revision ID: brian@canonical.com-20221114191119-omsz8aicjaeqxsza
Move to https://code.launchpad.net/~ubuntu-core-dev/whoopsie/+git/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
void whoopsie_identifier_generate (char** res, GError** error);
2
 
void whoopsie_identifier_get_imei (char** res, GError** error);
3
 
void whoopsie_identifier_get_mac_address (char** res, GError** error);
4
 
void whoopsie_identifier_get_system_uuid (char** res, GError** error);
5
 
void whoopsie_identifier_get_android_serialno (char** res, GError** error);
6
 
void whoopsie_identifier_sha512 (char* source, char* res, GError** error);
7
 
void whoopsie_hex_to_char (char* buf, const char *str, int len);
8
 
#define HASHLEN 128
9
 
 
10
 
/* for testing: */
11
 
void whoopsie_identifier_set_ofono_name (char* name) __attribute__ ((__warning__ ("Only for testing")));
12
 
void whoopsie_identifier_set_cache_file (char* filename) __attribute__ ((__warning__ ("Only for testing")));
13
 
void whoopsie_identifier_fail_next_get_mac (gint how) __attribute__ ((__warning__ ("Only for testing")));
14
 
void whoopsie_identifier_fail_next_get_uuid () __attribute__ ((__warning__ ("Only for testing")));
15
 
void whoopsie_identifier_fail_next_get_serial () __attribute__ ((__warning__ ("Only for testing")));
16
 
#define WHOOPSIE_FAIL_GENERIC 1
17
 
#define WHOOPSIE_FAIL_NO_IFACES 2
18
 
#define WHOOPSIE_FAILED_BY_REQUEST 42
19
 
 
20
 
/* The file path for publishing whoopsie_identifier */
21
 
#define WHOOPSIE_ID_PATH "/var/lib/whoopsie/whoopsie-id"