X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=blobdiff_plain;f=ext%2Fvcedit.h;h=c0f15dccb9a64f1b12bbd91112d0678e311e74e5;hp=cdd7be513c2bca55786b7e9a5362284d6d948cf3;hb=d9c71be69a0391cfe05f91c63c76f5134b121818;hpb=bf1f7624bee5a466b402825083190d3afbd9c28b diff --git a/ext/vcedit.h b/ext/vcedit.h index cdd7be5..c0f15dc 100644 --- a/ext/vcedit.h +++ b/ext/vcedit.h @@ -27,15 +27,22 @@ extern "C" { #include #include +typedef enum { + VCEDIT_ERR_SUCCESS = 0, + VCEDIT_ERR_OPEN, + VCEDIT_ERR_INVAL, + VCEDIT_ERR_TMPFILE, + VCEDIT_ERR_REOPEN +} vcedit_error; + typedef struct vcedit_state_St vcedit_state; vcedit_state *vcedit_state_new (const char *filename); void vcedit_state_ref (vcedit_state *state); void vcedit_state_unref (vcedit_state *state); vorbis_comment *vcedit_comments (vcedit_state *state); -int vcedit_open (vcedit_state *state); -int vcedit_write (vcedit_state *state); -const char *vcedit_error (vcedit_state *state); +vcedit_error vcedit_open (vcedit_state *state); +vcedit_error vcedit_write (vcedit_state *state); #ifdef __cplusplus }