Loading...
Searching...
No Matches
input-history.h
Go to the documentation of this file.
/* SPDX-License-Identifier: Zlib */
#ifndef GIRARA_INPUT_HISTORY_H
#define GIRARA_INPUT_HISTORY_H
#include <glib-object.h>
#include "types.h"
#include "macros.h"
struct girara_input_history_io_interface_s {
GTypeInterface parent_iface;
/* interface methods */
void (*append)(GiraraInputHistoryIO* io, const char* input);
girara_list_t* (*read)(GiraraInputHistoryIO* io);
/* reserved for further methods */
void (*reserved1)(void);
void (*reserved2)(void);
void (*reserved3)(void);
void (*reserved4)(void);
};
#define GIRARA_TYPE_INPUT_HISTORY_IO (girara_input_history_io_get_type())
#define GIRARA_INPUT_HISTORY_IO(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIO))
#define GIRARA_IS_INPUT_HISTORY_IO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY_IO))
#define GIRARA_INPUT_HISTORY_IO_GET_INTERFACE(obj) \
(G_TYPE_INSTANCE_GET_INTERFACE((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIOInterface))
GType girara_input_history_io_get_type(void) G_GNUC_CONST GIRARA_VISIBLE;
void girara_input_history_io_append(GiraraInputHistoryIO* io, const char* input) GIRARA_VISIBLE;
girara_list_t* girara_input_history_io_read(GiraraInputHistoryIO* io) GIRARA_VISIBLE;
struct girara_input_history_s {
GObject parent;
};
struct girara_input_history_class_s {
GObjectClass parent_class;
/* methods */
void (*append)(GiraraInputHistory* history, const char* input);
girara_list_t* (*list)(GiraraInputHistory* history);
const char* (*next)(GiraraInputHistory* history, const char* current_input);
const char* (*previous)(GiraraInputHistory* history, const char* current_input);
void (*reset)(GiraraInputHistory* history);
/* reserved for further methods */
void (*reserved1)(void);
void (*reserved2)(void);
void (*reserved3)(void);
void (*reserved4)(void);
};
#define GIRARA_TYPE_INPUT_HISTORY (girara_input_history_get_type())
#define GIRARA_INPUT_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistory))
#define GIRARA_INPUT_HISTORY_CLASS(obj) \
(G_TYPE_CHECK_CLASS_CAST((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
#define GIRARA_IS_INPUT_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY))
#define GIRARA_IS_INPUT_HISTORY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY))
#define GIRARA_INPUT_HISTORY_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
GType girara_input_history_get_type(void) G_GNUC_CONST GIRARA_VISIBLE;
GiraraInputHistory* girara_input_history_new(GiraraInputHistoryIO* io) GIRARA_VISIBLE;
void girara_input_history_append(GiraraInputHistory* history, const char* input) GIRARA_VISIBLE;
const char* girara_input_history_next(GiraraInputHistory* history, const char* current_input) GIRARA_VISIBLE;
const char* girara_input_history_previous(GiraraInputHistory* history, const char* current_input) GIRARA_VISIBLE;
void girara_input_history_reset(GiraraInputHistory* history) GIRARA_VISIBLE;
girara_list_t* girara_input_history_list(GiraraInputHistory* history) GIRARA_VISIBLE;
#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