OSDN Git Service

ソースの文字コードと改行コードを修正
[coroid/inqubus.git] / vhook / main.h
1 #ifndef MAIN_H_
2 #define MAIN_H_
3 #include <SDL/SDL.h>
4 #include <SDL/SDL_ttf.h>
5 #include "nicodef.h"
6 #include "struct_define.h"
7 #include "chat/chat.h"
8 #include "chat/chat_slot.h"
9
10 struct COMMDATA {
11     int enable;
12     CHAT chat;
13     CHAT_SLOT slot;
14     int opaque_comment;
15     DATA* common;
16 };
17
18 struct DATA{
19         FILE* log;
20         TTF_Font* font[CMD_FONT_MAX];
21         SDL_Surface* screen;
22 //      /*それぞれのコメントに応じたデータ*/
23 //      //ユーザコメント
24 //      int enable_user_comment;
25 //      CHAT chat;
26 //      CHAT_SLOT slot;
27 //      //投稿者コメント
28 //      int enable_owner_comment;
29         COMMDATA user_comment;
30         COMMDATA owner_comment;
31         
32         //一般的なデータ
33         int shadow_kind;
34         int show_video;
35         int fontsize_fix;
36         int process_first_called;
37         int video_length;
38 };
39
40 typedef struct SETTING{
41         const char* data_user_path;
42         const char* data_owner_path;
43         const char* font_path;
44         int video_length;
45         int font_index;
46         int user_slot_max;
47         int owner_slot_max;
48         int shadow_kind;
49         /*TRUE OR FALSE*/
50         int enable_user_comment;
51         int enable_owner_comment;
52         int show_video;
53         int fontsize_fix;
54         int opaque_comment;
55 }SETTING;
56
57 int init(FILE* log);
58 int initData(DATA* data,FILE* log,const SETTING* setting);
59 int main_process(DATA* data,SDL_Surface* surf,const int now_vpos);
60 int closeData(DATA* data);
61 int close();
62
63 #endif /*MAIN_H_*/