X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.h;h=4efb953c550fae754c62c96098bb8e8a51995b80;hb=4e77f0d303d1ef44ee797941a3bebdcbb37119aa;hp=0ab259d35b539f1635345a307572817944986d50;hpb=c725a4f64718ef1ee4139c27c94b2eb6447b51b4;p=pspp-builds.git diff --git a/src/data/dictionary.h b/src/data/dictionary.h index 0ab259d3..4efb953c 100644 --- a/src/data/dictionary.h +++ b/src/data/dictionary.h @@ -142,6 +142,16 @@ const struct vector *dict_lookup_vector (const struct dictionary *, const char *name); void dict_clear_vectors (struct dictionary *); +/* Attributes. */ +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 { @@ -152,12 +162,18 @@ struct dict_callbacks void (*weight_changed) (struct dictionary *, int, void *); void (*filter_changed) (struct dictionary *, int, void *); void (*split_changed) (struct dictionary *, void *); + void (*var_display_width_changed) (struct dictionary *, int, void *); }; 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 *);