Initial Import
[profile/ivi/clutter-toys.git] / attic / aaina / libnflick / nflick-api-request-private.h
1 /******************************************************************************/
2 /*                                                                            */
3 /* GPL license, Copyright (c) 2005-2006 by:                                   */
4 /*                                                                            */
5 /* Authors:                                                                   */
6 /*      Michael Dominic K. <michaldominik@gmail.com>                          */
7 /*                                                                            */
8 /* This program is free software; you can redistribute it and/or modify it    */
9 /* under the terms of the GNU General Public License as published by the      */
10 /* Free Software Foundation; either version 2, or (at your option) any later  */
11 /* version.                                                                   */
12 /*                                                                            */
13 /* This program is distributed in the hope that it will be useful, but        */
14 /* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY */
15 /* or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   */
16 /* for more details.                                                          */
17 /*                                                                            */
18 /* You should have received a copy of the GNU General Public License along    */
19 /* with this program; if not, write to the Free Software Foundation, Inc., 59 */
20 /* Temple Place - Suite 330, Boston, MA 02111-1307, USA.                      */
21 /*                                                                            */
22 /******************************************************************************/
23
24 static GObjectClass*            ParentClass = NULL;
25
26 struct                          _NFlickApiRequestPrivate
27 {
28         GHashTable *Hash;
29         gchar *Buffer;
30         gint32 BytesRead;
31 };
32
33 static void                     nflick_api_request_class_init (NFlickApiRequestClass *klass);
34
35 static void                     nflick_api_request_init (NFlickApiRequest *self);
36
37 static gboolean                 private_init (NFlickApiRequest *self, NFlickApiRequestPrivate *private);
38
39 static void                     private_dispose (NFlickApiRequestPrivate *private);
40
41 static void                     nflick_api_request_dispose (NFlickApiRequest *self);
42
43 static void                     nflick_api_request_finalize (NFlickApiRequest *self);
44
45 static gchar*                   get_path (NFlickApiRequest *self);
46
47 static void                     foreach_composer_list (gchar *param, gchar *val, GList **list);
48
49 static void                     foreach_composer_str (gchar *val, gchar **str);
50
51 static gchar*                   get_path_sig (NFlickApiRequest *self);
52
53 static void                     foreach_composer_list_sig (gchar *param, gchar *val, GList **list);
54
55 static void                     foreach_composer_str_sig (gchar *val, gchar **str);
56
57 static int                      block_reader (NFlickApiRequest *self, gchar *buffer, int len);
58