X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.h;h=4efb953c550fae754c62c96098bb8e8a51995b80;hb=503f53bfdde87fc40466dadb77bc04cee0be2567;hp=682409e24216a11c7492cb39082b30d62f101f19;hpb=ddd7c113f3e50c8d87f6a677856799d05a1f40c7;p=pspp-builds.git diff --git a/src/data/dictionary.h b/src/data/dictionary.h index 682409e2..4efb953c 100644 --- a/src/data/dictionary.h +++ b/src/data/dictionary.h @@ -147,6 +147,11 @@ struct attrset *dict_get_attributes (const struct dictionary *); void dict_set_attributes (struct dictionary *, const struct attrset *); bool dict_has_attributes (const struct dictionary *); + +void dict_set_encoding (struct dictionary *d, const char *enc); +const char *dict_get_encoding (const struct dictionary *d); + + /* Functions to be called upon dictionary changes. */ struct dict_callbacks { @@ -164,6 +169,11 @@ void dict_set_callbacks (struct dictionary *, const struct dict_callbacks *, void *); void dict_copy_callbacks (struct dictionary *, const struct dictionary *); +void dict_set_change_callback (struct dictionary *d, + void (*changed) (struct dictionary *, void*), + void *data); + + /* Debug use only. */ void dict_dump (const struct dictionary *);