pxd: initial work
[pspp] / src / data / dictionary.h
index fdc28611f69bf421f996eeb460bc2ae3377708d5..62acd584f12acab245e4d2b5f8c28f4dcd1fdbca 100644 (file)
 #include "data/case.h"
 #include "data/dict-class.h"
 
-struct string;
 struct ccase;
+struct pxd;
+struct string;
 
 /* Creating dictionaries. */
 struct dictionary *dict_create (const char *encoding);
 struct dictionary *dict_clone (const struct dictionary *);
 
-
 /* Clearing and destroying dictionaries. */
 void dict_clear (struct dictionary *);
 void dict_destroy (struct dictionary *);
@@ -182,11 +182,9 @@ struct dict_callbacks
   void (*var_deleted) (struct dictionary *, const struct variable *,
                        int dict_index, int case_index, void *);
   void (*var_changed) (struct dictionary *, int, unsigned int, const struct variable *, void *);
-  void (*var_resized) (struct dictionary *, int, int, void *);
   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 *,
@@ -201,4 +199,8 @@ void dict_set_change_callback (struct dictionary *d,
 /* Debug use only. */
 void dict_dump (const struct dictionary *);
 
+/* Saving and loading. */
+struct pxd_object *dict_save (const struct dictionary *, struct pxd *);
+struct dictionary *dict_load (struct pxd_object *, const struct pxd *);
+
 #endif /* data/dictionary.h */