#ifndef __stringset_h
#define __stringset_h

typedef struct {
  char *token;
  int value;
} s_match;

typedef struct {
  ObjectId win;
  ComponentId page;
  ComponentId component;
  const s_match *options;
  int *dest;
} _stringset;

#include "settings.h"

_kernel_oserror *stringset_set_value(ObjectId win,ComponentId c,const s_match list[],int value);
//int stringset_get_value(ObjectId win,ComponentId c,s_match list[]);
int stringset_string_value(char *string,const s_match list[]);
void stringset_init(settings *s);
void stringset_add(ComponentId page,ObjectId win,ComponentId component,const s_match *options,int *dest);

#endif
