diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-08-08 18:24:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-08-08 18:24:21 (GMT) |
commit | c0cc928bfab0af2cdbf16e9a04d41983f4732b93 (patch) | |
tree | eb62ba48bae31886ddad2385c2ccfbc1e002ec6f /src/glibext | |
parent | 1b7c29ed7dd9561a387be694f09c089e6126716c (diff) |
Introduce singletons for operands.
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/singleton-int.h | 2 | ||||
-rw-r--r-- | src/glibext/singleton.c | 2 | ||||
-rw-r--r-- | src/glibext/singleton.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/glibext/singleton-int.h b/src/glibext/singleton-int.h index 49cfecd..3db17f9 100644 --- a/src/glibext/singleton-int.h +++ b/src/glibext/singleton-int.h @@ -45,7 +45,7 @@ typedef gboolean (* is_candidate_equal_fc) (const GSingletonCandidate *, const G typedef void (* set_candidate_ro_fc) (GSingletonCandidate *); /* Indique si le candidat est figé. */ -typedef bool (* is_candidate_ro_fc) (GSingletonCandidate *); +typedef bool (* is_candidate_ro_fc) (const GSingletonCandidate *); /* Instance d'objet visant à être unique (interface) */ diff --git a/src/glibext/singleton.c b/src/glibext/singleton.c index bcd5580..78a3ad4 100644 --- a/src/glibext/singleton.c +++ b/src/glibext/singleton.c @@ -466,7 +466,7 @@ void g_singleton_candidate_set_read_only(GSingletonCandidate *candidate) * * ******************************************************************************/ -bool g_singleton_candidate_is_read_only(GSingletonCandidate *candidate) +bool g_singleton_candidate_is_read_only(const GSingletonCandidate *candidate) { bool result; /* Etat à retourner */ GSingletonCandidateIface *iface; /* Interface utilisée */ diff --git a/src/glibext/singleton.h b/src/glibext/singleton.h index 0561f80..629687a 100644 --- a/src/glibext/singleton.h +++ b/src/glibext/singleton.h @@ -69,7 +69,7 @@ gboolean g_singleton_candidate_is_equal(GSingletonCandidate *, GSingletonCandida void g_singleton_candidate_set_read_only(GSingletonCandidate *); /* Indique si le candidat est figé. */ -bool g_singleton_candidate_is_read_only(GSingletonCandidate *); +bool g_singleton_candidate_is_read_only(const GSingletonCandidate *); |