Skip to content

Commit

Permalink
added article submission code. OMG.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogon committed Oct 8, 2002
1 parent e94f8ce commit 4f61e25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libinews/IcculusNews.h
Expand Up @@ -70,6 +70,7 @@ typedef struct {
#define ERR_NOSUCHUSER -4 /* user does not exist */
#define ERR_UNAUTHORIZED -5 /* I cannot allow you to do that, Dave. */
#define ERR_SERVFAIL -6 /* internal server failure */
#define ERR_STORYTOOLONG -7 /* story was longer than the server wanted it to be; truncated. */

// initialize the library
extern int INEWS_init();
Expand Down Expand Up @@ -122,6 +123,9 @@ extern int INEWS_changeQueue(int qid);
// retrieve a digest of the currently-selected queue with n articles
extern ArticleInfo **INEWS_digest(int n);

// submit an article. OMG
extern int INEWS_submitArticle(char *title, char *body);

// free the memory dynamically allocated by a call to INEWS_digest
extern void INEWS_freeDigest(ArticleInfo **digest);

Expand Down
1 change: 1 addition & 0 deletions libinews/internals.h
Expand Up @@ -67,6 +67,7 @@ int INEWS_auth(const char *username, const char *password);
int INEWS_retrQueueInfo();
int INEWS_changeQueue(int qid);
ArticleInfo **INEWS_digest(int n);
int INEWS_submitArticle(char *title, char *body);
void INEWS_disconnect();

int __read_line(char *str, int max_sz);
Expand Down

0 comments on commit 4f61e25

Please sign in to comment.