/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_simple_sel_dump(CRSimpleSel *a_this, FILE *a_fp)
/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_simple_sel_dump(CRSimpleSel *a_this, FILE *a_fp)
{
        guchar *tmp_str = NULL;
        g_return_val_if_fail (a_fp, CR_BAD_PARAM_ERROR);
        if (a_this) {
                tmp_str = cr_simple_sel_to_string (a_this);
                if (tmp_str) {
                        fprintf (a_fp, "%s", tmp_str);
                        g_free (tmp_str);
                        tmp_str = NULL;
                }
        }
        return CR_OK;
}