typedef void storage_init_f(struct stevedore *, const char *spec);
typedef void storage_open_f(struct stevedore *);
typedef struct storage *storage_alloc_f(struct stevedore *, size_t size);
-typedef void storage_trim_f(struct storage *, size_t size);
-typedef void storage_free_f(struct storage *);
+typedef void storage_trim_f(const struct storage *, size_t size);
+typedef void storage_free_f(const struct storage *);
struct stevedore {
const char *name;
/*--------------------------------------------------------------------*/
static void
-smf_trim(struct storage *s, size_t size)
+smf_trim(const struct storage *s, size_t size)
{
struct smf *smf;
struct smf_sc *sc;
/*--------------------------------------------------------------------*/
static void
-smf_free(struct storage *s)
+smf_free(const struct storage *s)
{
struct smf *smf;
struct smf_sc *sc;
}
static void
-sma_free(struct storage *s)
+sma_free(const struct storage *s)
{
struct sma *sma;
}
static void
-sma_trim(struct storage *s, size_t size)
+sma_trim(const struct storage *s, size_t size)
{
struct sma *sma;
void *p;