[1b221e0] | 1 | /***************************************************************************\ |
---|
| 2 | * * |
---|
| 3 | * BitlBee - An IRC to IM gateway * |
---|
| 4 | * Simple module to facilitate twitter functionality. * |
---|
| 5 | * * |
---|
| 6 | * Copyright 2009 Geert Mulders <g.c.w.m.mulders@gmail.com> * |
---|
| 7 | * * |
---|
| 8 | * This library is free software; you can redistribute it and/or * |
---|
| 9 | * modify it under the terms of the GNU Lesser General Public * |
---|
| 10 | * License as published by the Free Software Foundation, version * |
---|
| 11 | * 2.1. * |
---|
| 12 | * * |
---|
| 13 | * This library is distributed in the hope that it will be useful, * |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * |
---|
| 16 | * Lesser General Public License for more details. * |
---|
| 17 | * * |
---|
| 18 | * You should have received a copy of the GNU Lesser General Public License * |
---|
| 19 | * along with this library; if not, write to the Free Software Foundation, * |
---|
| 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * |
---|
| 21 | * * |
---|
| 22 | ****************************************************************************/ |
---|
| 23 | |
---|
| 24 | #ifndef _TWITTER_HTTP_H |
---|
| 25 | #define _TWITTER_HTTP_H |
---|
| 26 | |
---|
| 27 | #include "nogaim.h" |
---|
| 28 | #include "http_client.h" |
---|
| 29 | |
---|
[b235228] | 30 | typedef enum { |
---|
| 31 | /* With this set, twitter_http_post() will post a generic confirmation |
---|
| 32 | message to the user. */ |
---|
| 33 | TWITTER_HTTP_USER_ACK = 0x1000000, |
---|
| 34 | } twitter_http_flags_t; |
---|
| 35 | |
---|
[c2ecadc] | 36 | struct oauth_info; |
---|
| 37 | |
---|
[ddc2de5] | 38 | struct http_request *twitter_http(struct im_connection *ic, char *url_string, http_input_function func, |
---|
| 39 | gpointer data, int is_post, char** arguments, int arguments_len); |
---|
[b235228] | 40 | struct http_request *twitter_http_f(struct im_connection *ic, char *url_string, http_input_function func, |
---|
| 41 | gpointer data, int is_post, char** arguments, int arguments_len, twitter_http_flags_t flags); |
---|
[1b221e0] | 42 | |
---|
| 43 | #endif //_TWITTER_HTTP_H |
---|
| 44 | |
---|