girara
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
types.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef GIRARA_TYPES_H
4 #define GIRARA_TYPES_H
5 
6 #include "version.h"
7 #include <stdbool.h>
8 
9 typedef struct girara_tree_node_s girara_tree_node_t;
10 typedef struct girara_list_s girara_list_t;
11 typedef struct girara_list_iterator_s girara_list_iterator_t;
12 typedef struct girara_setting_s girara_setting_t;
13 typedef struct girara_session_s girara_session_t;
14 typedef struct girara_session_private_s girara_session_private_t;
15 typedef struct girara_command_s girara_command_t;
16 typedef struct girara_mouse_event_s girara_mouse_event_t;
17 typedef struct girara_config_handle_s girara_config_handle_t;
18 typedef struct girara_mode_string_s girara_mode_string_t;
19 typedef struct girara_tab_s girara_tab_t;
20 typedef struct girara_statusbar_item_s girara_statusbar_item_t;
21 typedef struct girara_argument_s girara_argument_t;
22 typedef struct girara_shortcut_mapping_s girara_shortcut_mapping_t;
23 typedef struct girara_argument_mapping_s girara_argument_mapping_t;
24 typedef struct girara_completion_element_s girara_completion_element_t;
25 typedef struct girara_completion_s girara_completion_t;
26 typedef struct girara_completion_group_s girara_completion_group_t;
27 typedef struct girara_shortcut_s girara_shortcut_t;
28 typedef struct girara_inputbar_shortcut_s girara_inputbar_shortcut_t;
29 typedef struct girara_special_command_s girara_special_command_t;
30 typedef struct girara_event_s girara_event_t;
31 
35 enum
36 {
53 };
54 
58 typedef enum girara_debug_level_e
59 {
65 
69 typedef int girara_mode_t;
70 
78 typedef girara_completion_t* (*girara_completion_function_t)(
79  girara_session_t* session, const char* input);
80 
90 typedef bool (*girara_inputbar_special_function_t)(girara_session_t* session,
91  const char* input, girara_argument_t* argument);
92 
100 typedef bool (*girara_command_function_t)(girara_session_t* session,
101  girara_list_t* argument_list);
102 
110 typedef bool (*girara_shortcut_function_t)(girara_session_t*,
111  girara_argument_t*, girara_event_t*, unsigned int);
112 
118 typedef void (*girara_free_function_t)(void* data);
119 
126 typedef void (*girara_list_callback_t)(void* data, void* userdata);
127 
134 typedef int (*girara_compare_function_t)(const void* data1, const void* data2);
135 
139 typedef enum girara_setting_type_e
140 {
143  INT,
145  UNKNOWN = 0xFFFF
147 
157 typedef void (*girara_setting_callback_t)(girara_session_t* session,
158  const char* name, girara_setting_type_t type, void* value, void* data);
159 
164 {
165  int n;
166  void *data;
167 };
168 
172 typedef enum girara_mouse_button_e
173 {
184 
188 typedef enum girara_event_type_e
189 {
201 
206 {
209  double x;
210  double y;
211 };
212 
213 typedef struct girara_input_history_io_s GiraraInputHistoryIO;
214 typedef struct girara_input_history_io_interface_s GiraraInputHistoryIOInterface;
215 typedef struct girara_input_history_s GiraraInputHistory;
216 typedef struct girara_input_history_class_s GiraraInputHistoryClass;
217 
218 #endif