Added more connect tests
This commit is contained in:
@@ -57,6 +57,8 @@ struct curl_data_t
|
||||
size_t size;
|
||||
};
|
||||
|
||||
static unsigned long unique_id = 0;
|
||||
|
||||
static size_t _data_callback(void *ptr, size_t size, size_t nmemb, void *data);
|
||||
|
||||
// taken from glib 2.30.3
|
||||
@@ -469,7 +471,6 @@ xdg_get_data_home(void)
|
||||
char *
|
||||
create_unique_id(char *prefix)
|
||||
{
|
||||
static unsigned long unique_id;
|
||||
char *result = NULL;
|
||||
GString *result_str = g_string_new("");
|
||||
|
||||
@@ -485,6 +486,12 @@ create_unique_id(char *prefix)
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
reset_unique_id(void)
|
||||
{
|
||||
unique_id = 0;
|
||||
}
|
||||
|
||||
char *
|
||||
p_sha1_hash(char *str)
|
||||
{
|
||||
|
||||
@@ -127,6 +127,7 @@ contact_presence_t contact_presence_from_resource_presence(resource_presence_t r
|
||||
|
||||
char * p_sha1_hash(char *str);
|
||||
char * create_unique_id(char *prefix);
|
||||
void reset_unique_id(void);
|
||||
|
||||
int cmp_win_num(gconstpointer a, gconstpointer b);
|
||||
int get_next_available_win_num(GList *used);
|
||||
|
||||
Reference in New Issue
Block a user