summaryrefslogtreecommitdiff
path: root/net.h
blob: 3bd184ad20a9e50beaa472502c4b891456e287f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NET_H
#define NET_H

// life cycle / event loop related functions
void net_init(void);      // initialize net
void net_run_once(void);  // process event loop for a short amount of time
void net_quit(void);      // disconnect and clean up

// interface for the GUI implementation
void net_connect(const char* jid, const char* password);
void net_disconnect(void);
void net_send_message(const char* sender, const char* content,
                      const char* recipient);
#endif