diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-04-20 13:59:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-04-20 13:59:10 -0700 |
commit | 020c6b59045f04b14a0898d2c373b6a09b39fe31 (patch) | |
tree | a07048b0d43c89fa30c12000946892a9c85b9d16 /src/stage.h | |
parent | 00a91e91c91436dfb036be23be0e8a008ab245ce (diff) |
libstage: return stage_t* from stage_replace()
also from internal _stage_set_object() for better ergonomics
Diffstat (limited to 'src/stage.h')
-rw-r--r-- | src/stage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stage.h b/src/stage.h index d1c8e69..ec0a72b 100644 --- a/src/stage.h +++ b/src/stage.h @@ -43,7 +43,7 @@ typedef struct stage_conf_t { } stage_conf_t; stage_t * stage_new(const stage_conf_t *conf, const stage_ops_t *ops, void *object); -void stage_replace(stage_t *stage, const char *name, const stage_ops_t *ops, void *object); +stage_t * stage_replace(stage_t *stage, const char *name, const stage_ops_t *ops, void *object); stage_t * stage_free(stage_t *stage); int stage_render(stage_t *stage, void *render_ctxt); |