summaryrefslogtreecommitdiff
path: root/sdl.c
blob: fcc95814d68dac8c8a480ae237fcd67c895b6a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44


#include <SDL/SDL.h>

#include "net.h"
#include "data.h"


void gui_run(void) {

    int cont = 1;
    SDL_Event event;

    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_WM_SetCaption("LimoX", NULL);
    SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE);
    while (cont) {
        SDL_WaitEvent(&event);
        if (event.type == SDL_QUIT)
            cont = 0;
    }
    SDL_Quit();

}

void gui_connected(char* jid, char* password) {

}

void gui_disconnected(void) {

}

void gui_add_roster_item_widget(roster_item_t* item) {

}

void gui_add_chat_widget(chat_t* chat) {

}

void gui_add_message_widget(message_t* message, chat_t* chat) {

}