diff options
author | Federico Mena Quintero <federico@gnome.org> | 2016-11-09 15:37:27 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2016-11-09 15:37:27 -0600 |
commit | 468f9251782b7aed6f9ff5e34e404a6da161e880 (patch) | |
tree | 0322aaadab24e2a5f61e04423dfdd4542a308107 /rsvg-styles.h | |
parent | a450f40e58a0af5d1133a2b82bf52518946d0b51 (diff) | |
download | librsvg-468f9251782b7aed6f9ff5e34e404a6da161e880.tar.gz |
Make rsvg_state_new() / rsvg_state_free() the only way of getting new states
Previously they were allocated on the stack, allocated by hand on the
heap, allocated with g_slice by rsvg_state_push()...
Make all of that consistent; rsvg_state_new() is the only way to get
a new state now.
Diffstat (limited to 'rsvg-styles.h')
-rw-r--r-- | rsvg-styles.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rsvg-styles.h b/rsvg-styles.h index a044d3f3..bad04253 100644 --- a/rsvg-styles.h +++ b/rsvg-styles.h @@ -191,7 +191,8 @@ G_GNUC_INTERNAL RsvgState *rsvg_state_new (void); G_GNUC_INTERNAL -void rsvg_state_init (RsvgState * state); +void rsvg_state_free (RsvgState *state); + G_GNUC_INTERNAL void rsvg_state_reinit (RsvgState * state); G_GNUC_INTERNAL @@ -205,8 +206,6 @@ void rsvg_state_dominate (RsvgState * dst, const RsvgState * src); G_GNUC_INTERNAL void rsvg_state_override (RsvgState * dst, const RsvgState * src); G_GNUC_INTERNAL -void rsvg_state_finalize (RsvgState * state); -G_GNUC_INTERNAL void rsvg_state_free_all (RsvgState * state); G_GNUC_INTERNAL |