girara
Toggle main menu visibility
Loading...
Searching...
No Matches
input-history.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: Zlib */
2
3
#ifndef GIRARA_INPUT_HISTORY_H
4
#define GIRARA_INPUT_HISTORY_H
5
6
#include <glib-object.h>
7
8
#include "
types.h
"
9
#include "
macros.h
"
10
11
struct
girara_input_history_io_interface_s
{
12
GTypeInterface
parent_iface
;
13
14
/* interface methods */
15
22
void (*
append
)(
GiraraInputHistoryIO
* io,
const
char
* input);
23
30
girara_list_t
* (*read)(
GiraraInputHistoryIO
* io);
31
32
/* reserved for further methods */
33
void (*
reserved1
)(void);
34
void (*
reserved2
)(void);
35
void (*
reserved3
)(void);
36
void (*
reserved4
)(void);
37
};
38
39
#define GIRARA_TYPE_INPUT_HISTORY_IO (girara_input_history_io_get_type())
40
#define GIRARA_INPUT_HISTORY_IO(obj) \
41
(G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIO))
42
#define GIRARA_IS_INPUT_HISTORY_IO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY_IO))
43
#define GIRARA_INPUT_HISTORY_IO_GET_INTERFACE(obj) \
44
(G_TYPE_INSTANCE_GET_INTERFACE((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIOInterface))
45
46
GType
girara_input_history_io_get_type
(
void
) G_GNUC_CONST
GIRARA_VISIBLE
;
47
48
void
girara_input_history_io_append
(
GiraraInputHistoryIO
* io,
const
char
* input)
GIRARA_VISIBLE
;
49
50
girara_list_t
*
girara_input_history_io_read
(
GiraraInputHistoryIO
* io)
GIRARA_VISIBLE
;
51
52
struct
girara_input_history_s
{
53
GObject
parent
;
54
};
55
56
struct
girara_input_history_class_s
{
57
GObjectClass
parent_class
;
58
59
/* methods */
60
68
void (*
append
)(GiraraInputHistory* history,
const
char
* input);
69
76
girara_list_t
* (*list)(GiraraInputHistory* history);
77
85
const
char
* (*next)(GiraraInputHistory* history,
const
char
* current_input);
86
94
const
char
* (*previous)(GiraraInputHistory* history,
const
char
* current_input);
95
103
void (*
reset
)(GiraraInputHistory* history);
104
105
/* reserved for further methods */
106
void (*
reserved1
)(void);
107
void (*
reserved2
)(void);
108
void (*
reserved3
)(void);
109
void (*
reserved4
)(void);
110
};
111
112
#define GIRARA_TYPE_INPUT_HISTORY (girara_input_history_get_type())
113
#define GIRARA_INPUT_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistory))
114
#define GIRARA_INPUT_HISTORY_CLASS(obj) \
115
(G_TYPE_CHECK_CLASS_CAST((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
116
#define GIRARA_IS_INPUT_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY))
117
#define GIRARA_IS_INPUT_HISTORY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY))
118
#define GIRARA_INPUT_HISTORY_GET_CLASS(obj) \
119
(G_TYPE_INSTANCE_GET_CLASS((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
120
126
GType
girara_input_history_get_type
(
void
) G_GNUC_CONST
GIRARA_VISIBLE
;
127
134
GiraraInputHistory*
girara_input_history_new
(
GiraraInputHistoryIO
* io)
GIRARA_VISIBLE
;
135
142
void
girara_input_history_append
(GiraraInputHistory* history,
const
char
* input)
GIRARA_VISIBLE
;
143
151
const
char
*
girara_input_history_next
(GiraraInputHistory* history,
const
char
* current_input)
GIRARA_VISIBLE
;
152
160
const
char
*
girara_input_history_previous
(GiraraInputHistory* history,
const
char
* current_input)
GIRARA_VISIBLE
;
161
167
void
girara_input_history_reset
(GiraraInputHistory* history)
GIRARA_VISIBLE
;
168
175
girara_list_t
*
girara_input_history_list
(GiraraInputHistory* history)
GIRARA_VISIBLE
;
176
177
#endif
girara_input_history_previous
const char * girara_input_history_previous(GiraraInputHistory *history, const char *current_input) GIRARA_VISIBLE
girara_input_history_next
const char * girara_input_history_next(GiraraInputHistory *history, const char *current_input) GIRARA_VISIBLE
girara_input_history_new
GiraraInputHistory * girara_input_history_new(GiraraInputHistoryIO *io) GIRARA_VISIBLE
girara_input_history_get_type
GType girara_input_history_get_type(void) G_GNUC_CONST GIRARA_VISIBLE
girara_input_history_reset
void girara_input_history_reset(GiraraInputHistory *history) GIRARA_VISIBLE
girara_input_history_io_get_type
GType girara_input_history_io_get_type(void) G_GNUC_CONST GIRARA_VISIBLE
girara_input_history_append
void girara_input_history_append(GiraraInputHistory *history, const char *input) GIRARA_VISIBLE
girara_input_history_io_append
void girara_input_history_io_append(GiraraInputHistoryIO *io, const char *input) GIRARA_VISIBLE
girara_input_history_list
girara_list_t * girara_input_history_list(GiraraInputHistory *history) GIRARA_VISIBLE
girara_input_history_io_read
girara_list_t * girara_input_history_io_read(GiraraInputHistoryIO *io) GIRARA_VISIBLE
macros.h
GIRARA_VISIBLE
#define GIRARA_VISIBLE
Definition
macros.h:52
girara_input_history_class_s
Definition
input-history.h:56
girara_input_history_class_s::append
void(* append)(GiraraInputHistory *history, const char *input)
Definition
input-history.h:68
girara_input_history_class_s::reserved1
void(* reserved1)(void)
Definition
input-history.h:106
girara_input_history_class_s::reset
void(* reset)(GiraraInputHistory *history)
Definition
input-history.h:103
girara_input_history_class_s::parent_class
GObjectClass parent_class
Definition
input-history.h:57
girara_input_history_class_s::reserved4
void(* reserved4)(void)
Definition
input-history.h:109
girara_input_history_class_s::reserved3
void(* reserved3)(void)
Definition
input-history.h:108
girara_input_history_class_s::reserved2
void(* reserved2)(void)
Definition
input-history.h:107
girara_input_history_io_interface_s
Definition
input-history.h:11
girara_input_history_io_interface_s::parent_iface
GTypeInterface parent_iface
Definition
input-history.h:12
girara_input_history_io_interface_s::append
void(* append)(GiraraInputHistoryIO *io, const char *input)
Definition
input-history.h:22
girara_input_history_io_interface_s::reserved1
void(* reserved1)(void)
Definition
input-history.h:33
girara_input_history_io_interface_s::reserved4
void(* reserved4)(void)
Definition
input-history.h:36
girara_input_history_io_interface_s::reserved3
void(* reserved3)(void)
Definition
input-history.h:35
girara_input_history_io_interface_s::reserved2
void(* reserved2)(void)
Definition
input-history.h:34
girara_input_history_s
Definition
input-history.h:52
girara_input_history_s::parent
GObject parent
Definition
input-history.h:53
types.h
girara_list_t
struct girara_list_s girara_list_t
Definition
types.h:10
GiraraInputHistoryIO
struct girara_input_history_io_s GiraraInputHistoryIO
Definition
types.h:38
girara
input-history.h
Generated by
1.17.0