X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss_ws.h;fp=src%2Fttrss_ws.h;h=770b706d32571bef92ce892b125aba435d70ae13;hp=0000000000000000000000000000000000000000;hb=d3989176b13fa23ae4a320e2472a0bba2d9a007d;hpb=c0cda2fe5f100bcf3dcbae21d1b794493092947b diff --git a/src/ttrss_ws.h b/src/ttrss_ws.h new file mode 100644 index 0000000..770b706 --- /dev/null +++ b/src/ttrss_ws.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2010-2013 jeanfi@gmail.com + * + * 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 Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ + +#ifndef _TTRSS_MODEL_WS_H_ +#define _TTRSS_MODEL_WS_H_ + +#include "ttrss.h" + +void ws_init(const char *url, const char *user, const char *pwd); + +struct json_object *ws_request_new(const char *op); +struct json_object *ws_execute(struct json_object *rq); + +struct feed **ws_update_feeds(struct feed **feeds); +int ws_update_headlines(struct feed *feed); +char *ws_get_article_content(int id); + +#endif