-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoscam-client.h
24 lines (22 loc) · 879 Bytes
/
oscam-client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef OSCAM_CLIENT_H_
#define OSCAM_CLIENT_H_
/* Gets the client associated to the calling thread. */
static inline struct s_client *cur_client(void)
{
return (struct s_client *)pthread_getspecific(getclient);
}
int32_t get_threadnum(struct s_client *client);
struct s_auth *get_account_by_name(char *name);
int8_t is_valid_client(struct s_client *client);
const char *remote_txt(void);
const char *client_get_proto(struct s_client *cl);
char *username(struct s_client *client);
void init_first_client(void);
struct s_client *create_client(IN_ADDR_T ip);
int32_t cs_auth_client(struct s_client *client, struct s_auth *account, const char *e_txt);
void cs_disconnect_client(struct s_client *client);
void cs_reinit_clients(struct s_auth *new_accounts);
void kill_all_clients(void);
void client_check_status(struct s_client *cl);
void free_client(struct s_client *cl);
#endif