Loading...
Searching...
No Matches
template.h
Go to the documentation of this file.
/* SPDX-License-Identifier: Zlib */
#ifndef GIRARA_TEMPLATE_H
#define GIRARA_TEMPLATE_H
#include <glib-object.h>
#include "macros.h"
#include "types.h"
struct girara_template_s {
GObject parent;
};
struct girara_template_class_s {
GObjectClass parent_class;
void (*base_changed)(GiraraTemplate*);
void (*variable_changed)(GiraraTemplate*, const char* name);
void (*changed)(GiraraTemplate*);
};
typedef struct girara_template_s GiraraTemplate;
typedef struct girara_template_class_s GiraraTemplateClass;
#define GIRARA_TYPE_TEMPLATE (girara_template_get_type())
#define GIRARA_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_TEMPLATE, GiraraTemplate))
#define GIRARA_TEMPLATE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST((obj), GIRARA_TYPE_TEMPLATE, GiraraTemplateClass))
#define GIRARA_IS_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_TEMPLATE))
#define GIRARA_IS_TEMPLATE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((obj), GIRARA_TYPE_TEMPLATE))
#define GIRARA_TEMPLATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GIRARA_TYPE_TEMPLATE, GiraraTemplateClass))
GType girara_template_get_type(void) G_GNUC_CONST GIRARA_VISIBLE;
GiraraTemplate* girara_template_new(const char* base) GIRARA_VISIBLE;
void girara_template_set_base(GiraraTemplate* object, const char* base) GIRARA_VISIBLE;
const char* girara_template_get_base(GiraraTemplate* object) GIRARA_VISIBLE;
girara_list_t* girara_template_referenced_variables(GiraraTemplate* object) GIRARA_VISIBLE;
bool girara_template_add_variable(GiraraTemplate* object, const char* name) GIRARA_VISIBLE;
void girara_template_set_variable_value(GiraraTemplate* object, const char* name, const char* value) GIRARA_VISIBLE;
char* girara_template_evaluate(GiraraTemplate* object) GIRARA_VISIBLE;
#endif
macros.h
GIRARA_VISIBLE
#define GIRARA_VISIBLE
Definition macros.h:52
girara_template_class_s
Definition template.h:14
girara_template_class_s::parent_class
GObjectClass parent_class
Definition template.h:15
girara_template_class_s::variable_changed
void(* variable_changed)(GiraraTemplate *, const char *name)
Definition template.h:18
girara_template_class_s::changed
void(* changed)(GiraraTemplate *)
Definition template.h:19
girara_template_class_s::base_changed
void(* base_changed)(GiraraTemplate *)
Definition template.h:17
girara_template_s
Definition template.h:10
girara_template_s::parent
GObject parent
Definition template.h:11
girara_template_new
GiraraTemplate * girara_template_new(const char *base) GIRARA_VISIBLE
girara_template_set_variable_value
void girara_template_set_variable_value(GiraraTemplate *object, const char *name, const char *value) GIRARA_VISIBLE
girara_template_get_base
const char * girara_template_get_base(GiraraTemplate *object) GIRARA_VISIBLE
girara_template_get_type
GType girara_template_get_type(void) G_GNUC_CONST GIRARA_VISIBLE
girara_template_evaluate
char * girara_template_evaluate(GiraraTemplate *object) GIRARA_VISIBLE
girara_template_add_variable
bool girara_template_add_variable(GiraraTemplate *object, const char *name) GIRARA_VISIBLE
girara_template_referenced_variables
girara_list_t * girara_template_referenced_variables(GiraraTemplate *object) GIRARA_VISIBLE
girara_template_set_base
void girara_template_set_base(GiraraTemplate *object, const char *base) GIRARA_VISIBLE
types.h
girara_list_t
struct girara_list_s girara_list_t
Definition types.h:10