data
struktury gg_http
zawiera wskaźnik do struktury gg_pubdir
. Ta ostatnia w polu success
określa, czy operacja się powiodła.
Funkcje | |
struct gg_http * | gg_unregister3 (uin_t uin, const char *password, const char *tokenid, const char *tokenval, int async) |
Usuwa użytkownika. | |
int | gg_unregister_watch_fd (struct gg_httpd *h) |
Funkcja wywoływana po zaobserwowaniu zmian na deskryptorze połączenia. | |
void | gg_unregister_free (struct gg_http *h) |
Zwalnia zasoby po operacji. |
struct gg_http* gg_unregister3 | ( | uin_t | uin, | |
const char * | password, | |||
const char * | tokenid, | |||
const char * | tokenval, | |||
int | async | |||
) | [read] |
Usuwa użytkownika.
Wymaga wcześniejszego pobrania tokenu za pomocą gg_token()
.
uin | Numer Gadu-Gadu | |
password | Hasło | |
tokenid | Identyfikator tokenu | |
tokenval | Zawartość tokenu | |
async | Flaga połączenia asynchronicznego |
gg_http
lub NULL
w przypadku błędu int gg_unregister_watch_fd | ( | struct gg_httpd * | h | ) |
Funkcja wywoływana po zaobserwowaniu zmian na deskryptorze połączenia.
Operacja będzie zakończona, gdy pole state
będzie równe GG_STATE_DONE
. Jeśli wystąpi błąd, state
będzie równe GG_STATE_ERROR
, a kod błędu znajdzie się w polu error
.
gg_pubdir_watch_fd()
.h | Struktura połączenia |
void gg_unregister_free | ( | struct gg_http * | h | ) |
Zwalnia zasoby po operacji.
gg_pubdir_free()
.h | Struktura połączenia |