/**
- * collectd - src/sn_stage.h
- * Copyright (C) 2008 Florian octo Forster
+ * libsortnetwork - src/sn_stage.h
+ * Copyright (C) 2008-2010 Florian octo Forster
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <octo at verplant.org>
+ * Florian octo Forster <ff at octo.it>
**/
#ifndef SN_STAGE_H
int sn_stage_show (sn_stage_t *s);
int sn_stage_invert (sn_stage_t *s);
+int sn_stage_shift (sn_stage_t *s, int sw, int inputs_num);
int sn_stage_swap (sn_stage_t *s, int con0, int con1);
int sn_stage_cut_at (sn_stage_t *s, int input, enum sn_network_cut_dir_e dir);
int sn_stage_remove_input (sn_stage_t *s, int input);
sn_stage_t *sn_stage_read (FILE *fh);
int sn_stage_write (sn_stage_t *s, FILE *fh);
+int sn_stage_serialize (sn_stage_t *s,
+ char **ret_buffer, size_t *ret_buffer_size);
+sn_stage_t *sn_stage_unserialize (char **buffer, size_t *buffer_size);
+
#endif /* SN_STAGE_H */
/* vim: set shiftwidth=2 softtabstop=2 : */