Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Comments in .h files.
Browse files Browse the repository at this point in the history
  • Loading branch information
residuum committed Feb 28, 2015
1 parent dd1c6a1 commit 0dd15f1
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions json-decode.h
Expand Up @@ -33,7 +33,11 @@ THE SOFTWARE.
struct _json_decode;
typedef struct _json_decode t_json_decode;

/* constructor */
APIEXPORT void APICALL *json_decode_new(const t_symbol *sel, const int argc, const t_atom *argv);

/* string input */
APIEXPORT void APICALL json_decode_string(t_json_decode *x, const t_symbol *data);

/* list input */
APIEXPORT void APICALL json_decode_list(t_json_decode *x, const t_symbol *sel, const int argc, t_atom *argv);
8 changes: 8 additions & 0 deletions json-encode.h
Expand Up @@ -35,12 +35,20 @@ THE SOFTWARE.
struct _json_encode;
typedef struct _json_encode t_json_encode;

/* constructor */
APIEXPORT void APICALL *json_encode_new(const t_symbol *sel, const int argc, const t_atom *argv);
/* destructor */
APIEXPORT void APICALL json_encode_free(t_json_encode *x, const t_symbol *sel, const int argc, const t_atom *argv);

/* bang and output */
APIEXPORT void APICALL json_encode_bang(t_json_encode *x);
/* add value */
APIEXPORT void APICALL json_encode_add(t_json_encode *x, const t_symbol *sel, const int argc, t_atom *argv);
/* add value to array */
APIEXPORT void APICALL json_encode_array(t_json_encode *x, const t_symbol *sel, const int argc, t_atom *argv);
/* read json file */
APIEXPORT void APICALL json_encode_read(t_json_encode *x, const t_symbol *filename);
/* write json file */
APIEXPORT void APICALL json_encode_write(t_json_encode *x, const t_symbol *filename);
/* clear stored json data */
APIEXPORT void APICALL json_encode_clear(t_json_encode *x, const t_symbol *sel, const int argc, const t_atom *argv);
12 changes: 12 additions & 0 deletions oauth.h
Expand Up @@ -35,16 +35,28 @@ THE SOFTWARE.
struct _oauth;
typedef struct _oauth t_oauth;

/* constructor */
APIEXPORT void APICALL *oauth_new(const t_symbol *sel, const int argc, t_atom *argv);
/* destructor */
APIEXPORT void APICALL oauth_free(t_oauth *oauth, const t_symbol *sel, const int argc, const t_atom *argv);

/* HTTP request */
APIEXPORT void APICALL oauth_command(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
/* set or clear timeout */
APIEXPORT void APICALL oauth_timeout(t_oauth *oauth, const t_floatarg f);
/* inits object and sets parameters */
APIEXPORT void APICALL oauth_init(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
/* OAuth singature method */
APIEXPORT void APICALL oauth_method(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
/* sets or clears check of SSL certificate */
APIEXPORT void APICALL oauth_sslcheck(t_oauth *oauth, const t_floatarg f);
/* cancel request */
APIEXPORT void APICALL oauth_cancel(t_oauth *oauth, const t_symbol *sel, const int argc, const t_atom *argv);
/* set header */
APIEXPORT void APICALL oauth_header(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
/* clear header */
APIEXPORT void APICALL oauth_clear_headers(t_oauth *oauth, const t_symbol *sel, const int argc, const t_atom *argv);
/* sets output file */
APIEXPORT void APICALL oauth_file(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
/* sets mode to HTTP streaming or blocking */
APIEXPORT void APICALL oauth_mode(t_oauth *oauth, const t_symbol *sel, const int argc, t_atom *argv);
11 changes: 11 additions & 0 deletions rest.h
Expand Up @@ -34,15 +34,26 @@ THE SOFTWARE.
struct _rest;
typedef struct _rest t_rest;

/* constructor */
APIEXPORT void APICALL *rest_new(t_symbol *sel, const int argc, t_atom *argv);
/* destructor */
APIEXPORT void APICALL rest_free(t_rest *rest, const t_symbol *sel, const int argc, const t_atom *argv);

/* HTTP request */
APIEXPORT void APICALL rest_command(t_rest *rest, const t_symbol *sel, const int argc, t_atom *argv);
/* set or clear timeout */
APIEXPORT void APICALL rest_timeout(t_rest *rest, const t_floatarg f);
/* inits object and sets parameters */
APIEXPORT void APICALL rest_init(t_rest *rest, const t_symbol *sel, const int argc, t_atom *argv);
/* sets or clears check of SSL certificate */
APIEXPORT void APICALL rest_sslcheck(t_rest *rest, const t_floatarg f);
/* cancel request */
APIEXPORT void APICALL rest_cancel(t_rest *rest, const t_symbol *sel, const int argc, const t_atom *argv);
/* set header */
APIEXPORT void APICALL rest_header(t_rest *rest, const t_symbol *sel, const int argc, t_atom *argv);
/* clear header */
APIEXPORT void APICALL rest_clear_headers(t_rest *rest, const t_symbol *sel, const int argc, const t_atom *argv);
/* sets output file */
APIEXPORT void APICALL rest_file(t_rest *rest, const t_symbol *sel, const int argc, t_atom *argv);
/* sets mode to HTTP streaming or blocking */
APIEXPORT void APICALL rest_mode(t_rest *rest, const t_symbol *sel, const int argc, t_atom *argv);
5 changes: 5 additions & 0 deletions urlparams.h
Expand Up @@ -35,9 +35,14 @@ THE SOFTWARE.
struct _urlparams;
typedef struct _urlparams t_urlparams;

/* constructor */
APIEXPORT void APICALL *urlparams_new(const t_symbol *sel, const int argc, const t_atom *argv);
/* destructor */
APIEXPORT void APICALL urlparams_free(t_urlparams *x, const t_symbol *sel, const int argc, const t_atom *argv);

/* bang and output */
APIEXPORT void APICALL urlparams_bang(t_urlparams *x);
/* add value */
APIEXPORT void APICALL urlparams_add(t_urlparams *x, const t_symbol *sel, const int argc, t_atom *argv);
/* clear stored values */
APIEXPORT void APICALL urlparams_clear(t_urlparams *x, const t_symbol *sel, const int argc, const t_atom *argv);

0 comments on commit 0dd15f1

Please sign in to comment.