diff options
Diffstat (limited to 'src/glibext/singleton.h')
-rw-r--r-- | src/glibext/singleton.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/glibext/singleton.h b/src/glibext/singleton.h index 6de9f41..0561f80 100644 --- a/src/glibext/singleton.h +++ b/src/glibext/singleton.h @@ -30,6 +30,11 @@ +/* Définition d'un compacteur d'instances de types (instance) */ +typedef struct _GSingletonFactory GSingletonFactory; + + + /* ------------------ INTERFACE POUR CANDIDAT A UNE CENTRALISATION ------------------ */ @@ -51,17 +56,20 @@ typedef struct _GSingletonCandidateIface GSingletonCandidateIface; /* Détermine le type d'une interface pour la lecture de binaire. */ GType g_singleton_candidate_get_type(void) G_GNUC_CONST; +/* Fournit une liste de candidats embarqués par un candidat. */ +GSingletonCandidate **g_singleton_candidate_list_inner_instances(const GSingletonCandidate *, size_t *); + /* Fournit l'empreinte d'un candidat à une centralisation. */ -guint g_singleton_candidate_hash(const GSingletonCandidate *); +guint g_singleton_candidate_hash(GSingletonCandidate *); /* Détermine si deux candidats à l'unicité sont identiques. */ -gboolean g_singleton_candidate_is_equal(const GSingletonCandidate *, const GSingletonCandidate *); +gboolean g_singleton_candidate_is_equal(GSingletonCandidate *, GSingletonCandidate *); -/* Marque un candidat comme traité ou en cours de traitement. */ -void g_singleton_candidate_mark_as_processed(GSingletonCandidate *, bool); +/* Marque un candidat comme figé. */ +void g_singleton_candidate_set_read_only(GSingletonCandidate *); -/* Indique si un objet marqué comme unique. */ -bool g_singleton_candidate_is_processed(const GSingletonCandidate *, bool); +/* Indique si le candidat est figé. */ +bool g_singleton_candidate_is_read_only(GSingletonCandidate *); @@ -76,9 +84,6 @@ bool g_singleton_candidate_is_processed(const GSingletonCandidate *, bool); #define G_SINGLETON_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_SINGLETON_FACTORY, GSingletonFactoryClass)) -/* Définition d'un compacteur d'instances de types (instance) */ -typedef struct _GSingletonFactory GSingletonFactory; - /* Définition d'un compacteur d'instances de types (classe) */ typedef struct _GSingletonFactoryClass GSingletonFactoryClass; |