~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/scripting/liferea_wrap.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ----------------------------------------------------------------------------
2
 
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.40
4
 
 * 
5
 
 * This file is not intended to be easily readable and contains a number of 
6
 
 * coding conventions designed to improve portability and efficiency. Do not make
7
 
 * changes to this file unless you know what you are doing--modify the SWIG 
8
 
 * interface file instead. 
9
 
 * ----------------------------------------------------------------------------- */
10
 
 
11
 
#define SWIGLUA
12
 
 
13
 
/* -----------------------------------------------------------------------------
14
 
 *  This section contains generic SWIG labels for method/variable
15
 
 *  declarations/attributes, and other compiler dependent labels.
16
 
 * ----------------------------------------------------------------------------- */
17
 
 
18
 
/* template workaround for compilers that cannot correctly implement the C++ standard */
19
 
#ifndef SWIGTEMPLATEDISAMBIGUATOR
20
 
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21
 
#  define SWIGTEMPLATEDISAMBIGUATOR template
22
 
# elif defined(__HP_aCC)
23
 
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24
 
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25
 
#  define SWIGTEMPLATEDISAMBIGUATOR template
26
 
# else
27
 
#  define SWIGTEMPLATEDISAMBIGUATOR
28
 
# endif
29
 
#endif
30
 
 
31
 
/* inline attribute */
32
 
#ifndef SWIGINLINE
33
 
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34
 
#   define SWIGINLINE inline
35
 
# else
36
 
#   define SWIGINLINE
37
 
# endif
38
 
#endif
39
 
 
40
 
/* attribute recognised by some compilers to avoid 'unused' warnings */
41
 
#ifndef SWIGUNUSED
42
 
# if defined(__GNUC__)
43
 
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44
 
#     define SWIGUNUSED __attribute__ ((__unused__)) 
45
 
#   else
46
 
#     define SWIGUNUSED
47
 
#   endif
48
 
# elif defined(__ICC)
49
 
#   define SWIGUNUSED __attribute__ ((__unused__)) 
50
 
# else
51
 
#   define SWIGUNUSED 
52
 
# endif
53
 
#endif
54
 
 
55
 
#ifndef SWIG_MSC_UNSUPPRESS_4505
56
 
# if defined(_MSC_VER)
57
 
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
58
 
# endif 
59
 
#endif
60
 
 
61
 
#ifndef SWIGUNUSEDPARM
62
 
# ifdef __cplusplus
63
 
#   define SWIGUNUSEDPARM(p)
64
 
# else
65
 
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
66
 
# endif
67
 
#endif
68
 
 
69
 
/* internal SWIG method */
70
 
#ifndef SWIGINTERN
71
 
# define SWIGINTERN static SWIGUNUSED
72
 
#endif
73
 
 
74
 
/* internal inline SWIG method */
75
 
#ifndef SWIGINTERNINLINE
76
 
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77
 
#endif
78
 
 
79
 
/* exporting methods */
80
 
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
81
 
#  ifndef GCC_HASCLASSVISIBILITY
82
 
#    define GCC_HASCLASSVISIBILITY
83
 
#  endif
84
 
#endif
85
 
 
86
 
#ifndef SWIGEXPORT
87
 
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
88
 
#   if defined(STATIC_LINKED)
89
 
#     define SWIGEXPORT
90
 
#   else
91
 
#     define SWIGEXPORT __declspec(dllexport)
92
 
#   endif
93
 
# else
94
 
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
95
 
#     define SWIGEXPORT __attribute__ ((visibility("default")))
96
 
#   else
97
 
#     define SWIGEXPORT
98
 
#   endif
99
 
# endif
100
 
#endif
101
 
 
102
 
/* calling conventions for Windows */
103
 
#ifndef SWIGSTDCALL
104
 
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
105
 
#   define SWIGSTDCALL __stdcall
106
 
# else
107
 
#   define SWIGSTDCALL
108
 
# endif 
109
 
#endif
110
 
 
111
 
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
112
 
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
113
 
# define _CRT_SECURE_NO_DEPRECATE
114
 
#endif
115
 
 
116
 
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
117
 
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
118
 
# define _SCL_SECURE_NO_DEPRECATE
119
 
#endif
120
 
 
121
 
 
122
 
/* -----------------------------------------------------------------------------
123
 
 * swigrun.swg
124
 
 *
125
 
 * This file contains generic C API SWIG runtime support for pointer
126
 
 * type checking.
127
 
 * ----------------------------------------------------------------------------- */
128
 
 
129
 
/* This should only be incremented when either the layout of swig_type_info changes,
130
 
   or for whatever reason, the runtime changes incompatibly */
131
 
#define SWIG_RUNTIME_VERSION "4"
132
 
 
133
 
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
134
 
#ifdef SWIG_TYPE_TABLE
135
 
# define SWIG_QUOTE_STRING(x) #x
136
 
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
137
 
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
138
 
#else
139
 
# define SWIG_TYPE_TABLE_NAME
140
 
#endif
141
 
 
142
 
/*
143
 
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
144
 
  creating a static or dynamic library from the SWIG runtime code.
145
 
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
146
 
  
147
 
  But only do this if strictly necessary, ie, if you have problems
148
 
  with your compiler or suchlike.
149
 
*/
150
 
 
151
 
#ifndef SWIGRUNTIME
152
 
# define SWIGRUNTIME SWIGINTERN
153
 
#endif
154
 
 
155
 
#ifndef SWIGRUNTIMEINLINE
156
 
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
157
 
#endif
158
 
 
159
 
/*  Generic buffer size */
160
 
#ifndef SWIG_BUFFER_SIZE
161
 
# define SWIG_BUFFER_SIZE 1024
162
 
#endif
163
 
 
164
 
/* Flags for pointer conversions */
165
 
#define SWIG_POINTER_DISOWN        0x1
166
 
#define SWIG_CAST_NEW_MEMORY       0x2
167
 
 
168
 
/* Flags for new pointer objects */
169
 
#define SWIG_POINTER_OWN           0x1
170
 
 
171
 
 
172
 
/* 
173
 
   Flags/methods for returning states.
174
 
   
175
 
   The SWIG conversion methods, as ConvertPtr, return and integer 
176
 
   that tells if the conversion was successful or not. And if not,
177
 
   an error code can be returned (see swigerrors.swg for the codes).
178
 
   
179
 
   Use the following macros/flags to set or process the returning
180
 
   states.
181
 
   
182
 
   In old versions of SWIG, code such as the following was usually written:
183
 
 
184
 
     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
185
 
       // success code
186
 
     } else {
187
 
       //fail code
188
 
     }
189
 
 
190
 
   Now you can be more explicit:
191
 
 
192
 
    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
193
 
    if (SWIG_IsOK(res)) {
194
 
      // success code
195
 
    } else {
196
 
      // fail code
197
 
    }
198
 
 
199
 
   which is the same really, but now you can also do
200
 
 
201
 
    Type *ptr;
202
 
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
203
 
    if (SWIG_IsOK(res)) {
204
 
      // success code
205
 
      if (SWIG_IsNewObj(res) {
206
 
        ...
207
 
        delete *ptr;
208
 
      } else {
209
 
        ...
210
 
      }
211
 
    } else {
212
 
      // fail code
213
 
    }
214
 
    
215
 
   I.e., now SWIG_ConvertPtr can return new objects and you can
216
 
   identify the case and take care of the deallocation. Of course that
217
 
   also requires SWIG_ConvertPtr to return new result values, such as
218
 
 
219
 
      int SWIG_ConvertPtr(obj, ptr,...) {         
220
 
        if (<obj is ok>) {                             
221
 
          if (<need new object>) {                     
222
 
            *ptr = <ptr to new allocated object>; 
223
 
            return SWIG_NEWOBJ;                
224
 
          } else {                                     
225
 
            *ptr = <ptr to old object>;        
226
 
            return SWIG_OLDOBJ;                
227
 
          }                                    
228
 
        } else {                                       
229
 
          return SWIG_BADOBJ;                  
230
 
        }                                              
231
 
      }
232
 
 
233
 
   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
234
 
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
235
 
   SWIG errors code.
236
 
 
237
 
   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
238
 
   allows to return the 'cast rank', for example, if you have this
239
 
 
240
 
       int food(double)
241
 
       int fooi(int);
242
 
 
243
 
   and you call
244
 
 
245
 
      food(1)   // cast rank '1'  (1 -> 1.0)
246
 
      fooi(1)   // cast rank '0'
247
 
 
248
 
   just use the SWIG_AddCast()/SWIG_CheckState()
249
 
*/
250
 
 
251
 
#define SWIG_OK                    (0) 
252
 
#define SWIG_ERROR                 (-1)
253
 
#define SWIG_IsOK(r)               (r >= 0)
254
 
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
255
 
 
256
 
/* The CastRankLimit says how many bits are used for the cast rank */
257
 
#define SWIG_CASTRANKLIMIT         (1 << 8)
258
 
/* The NewMask denotes the object was created (using new/malloc) */
259
 
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
260
 
/* The TmpMask is for in/out typemaps that use temporal objects */
261
 
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
262
 
/* Simple returning values */
263
 
#define SWIG_BADOBJ                (SWIG_ERROR)
264
 
#define SWIG_OLDOBJ                (SWIG_OK)
265
 
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
266
 
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
267
 
/* Check, add and del mask methods */
268
 
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
269
 
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
270
 
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
271
 
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
272
 
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
273
 
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
274
 
 
275
 
/* Cast-Rank Mode */
276
 
#if defined(SWIG_CASTRANK_MODE)
277
 
#  ifndef SWIG_TypeRank
278
 
#    define SWIG_TypeRank             unsigned long
279
 
#  endif
280
 
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
281
 
#    define SWIG_MAXCASTRANK          (2)
282
 
#  endif
283
 
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
284
 
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
285
 
SWIGINTERNINLINE int SWIG_AddCast(int r) { 
286
 
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
287
 
}
288
 
SWIGINTERNINLINE int SWIG_CheckState(int r) { 
289
 
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
290
 
}
291
 
#else /* no cast-rank mode */
292
 
#  define SWIG_AddCast
293
 
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
294
 
#endif
295
 
 
296
 
 
297
 
#include <string.h>
298
 
 
299
 
#ifdef __cplusplus
300
 
extern "C" {
301
 
#endif
302
 
 
303
 
typedef void *(*swig_converter_func)(void *, int *);
304
 
typedef struct swig_type_info *(*swig_dycast_func)(void **);
305
 
 
306
 
/* Structure to store information on one type */
307
 
typedef struct swig_type_info {
308
 
  const char             *name;                 /* mangled name of this type */
309
 
  const char             *str;                  /* human readable name of this type */
310
 
  swig_dycast_func        dcast;                /* dynamic cast function down a hierarchy */
311
 
  struct swig_cast_info  *cast;                 /* linked list of types that can cast into this type */
312
 
  void                   *clientdata;           /* language specific type data */
313
 
  int                    owndata;               /* flag if the structure owns the clientdata */
314
 
} swig_type_info;
315
 
 
316
 
/* Structure to store a type and conversion function used for casting */
317
 
typedef struct swig_cast_info {
318
 
  swig_type_info         *type;                 /* pointer to type that is equivalent to this type */
319
 
  swig_converter_func     converter;            /* function to cast the void pointers */
320
 
  struct swig_cast_info  *next;                 /* pointer to next cast in linked list */
321
 
  struct swig_cast_info  *prev;                 /* pointer to the previous cast */
322
 
} swig_cast_info;
323
 
 
324
 
/* Structure used to store module information
325
 
 * Each module generates one structure like this, and the runtime collects
326
 
 * all of these structures and stores them in a circularly linked list.*/
327
 
typedef struct swig_module_info {
328
 
  swig_type_info         **types;               /* Array of pointers to swig_type_info structures that are in this module */
329
 
  size_t                 size;                  /* Number of types in this module */
330
 
  struct swig_module_info *next;                /* Pointer to next element in circularly linked list */
331
 
  swig_type_info         **type_initial;        /* Array of initially generated type structures */
332
 
  swig_cast_info         **cast_initial;        /* Array of initially generated casting structures */
333
 
  void                    *clientdata;          /* Language specific module data */
334
 
} swig_module_info;
335
 
 
336
 
/* 
337
 
  Compare two type names skipping the space characters, therefore
338
 
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
339
 
 
340
 
  Return 0 when the two name types are equivalent, as in
341
 
  strncmp, but skipping ' '.
342
 
*/
343
 
SWIGRUNTIME int
344
 
SWIG_TypeNameComp(const char *f1, const char *l1,
345
 
                  const char *f2, const char *l2) {
346
 
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
347
 
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
348
 
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
349
 
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
350
 
  }
351
 
  return (int)((l1 - f1) - (l2 - f2));
352
 
}
353
 
 
354
 
/*
355
 
  Check type equivalence in a name list like <name1>|<name2>|...
356
 
  Return 0 if not equal, 1 if equal
357
 
*/
358
 
SWIGRUNTIME int
359
 
SWIG_TypeEquiv(const char *nb, const char *tb) {
360
 
  int equiv = 0;
361
 
  const char* te = tb + strlen(tb);
362
 
  const char* ne = nb;
363
 
  while (!equiv && *ne) {
364
 
    for (nb = ne; *ne; ++ne) {
365
 
      if (*ne == '|') break;
366
 
    }
367
 
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
368
 
    if (*ne) ++ne;
369
 
  }
370
 
  return equiv;
371
 
}
372
 
 
373
 
/*
374
 
  Check type equivalence in a name list like <name1>|<name2>|...
375
 
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
376
 
*/
377
 
SWIGRUNTIME int
378
 
SWIG_TypeCompare(const char *nb, const char *tb) {
379
 
  int equiv = 0;
380
 
  const char* te = tb + strlen(tb);
381
 
  const char* ne = nb;
382
 
  while (!equiv && *ne) {
383
 
    for (nb = ne; *ne; ++ne) {
384
 
      if (*ne == '|') break;
385
 
    }
386
 
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
387
 
    if (*ne) ++ne;
388
 
  }
389
 
  return equiv;
390
 
}
391
 
 
392
 
 
393
 
/*
394
 
  Check the typename
395
 
*/
396
 
SWIGRUNTIME swig_cast_info *
397
 
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
398
 
  if (ty) {
399
 
    swig_cast_info *iter = ty->cast;
400
 
    while (iter) {
401
 
      if (strcmp(iter->type->name, c) == 0) {
402
 
        if (iter == ty->cast)
403
 
          return iter;
404
 
        /* Move iter to the top of the linked list */
405
 
        iter->prev->next = iter->next;
406
 
        if (iter->next)
407
 
          iter->next->prev = iter->prev;
408
 
        iter->next = ty->cast;
409
 
        iter->prev = 0;
410
 
        if (ty->cast) ty->cast->prev = iter;
411
 
        ty->cast = iter;
412
 
        return iter;
413
 
      }
414
 
      iter = iter->next;
415
 
    }
416
 
  }
417
 
  return 0;
418
 
}
419
 
 
420
 
/* 
421
 
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
422
 
*/
423
 
SWIGRUNTIME swig_cast_info *
424
 
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
425
 
  if (ty) {
426
 
    swig_cast_info *iter = ty->cast;
427
 
    while (iter) {
428
 
      if (iter->type == from) {
429
 
        if (iter == ty->cast)
430
 
          return iter;
431
 
        /* Move iter to the top of the linked list */
432
 
        iter->prev->next = iter->next;
433
 
        if (iter->next)
434
 
          iter->next->prev = iter->prev;
435
 
        iter->next = ty->cast;
436
 
        iter->prev = 0;
437
 
        if (ty->cast) ty->cast->prev = iter;
438
 
        ty->cast = iter;
439
 
        return iter;
440
 
      }
441
 
      iter = iter->next;
442
 
    }
443
 
  }
444
 
  return 0;
445
 
}
446
 
 
447
 
/*
448
 
  Cast a pointer up an inheritance hierarchy
449
 
*/
450
 
SWIGRUNTIMEINLINE void *
451
 
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
452
 
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
453
 
}
454
 
 
455
 
/* 
456
 
   Dynamic pointer casting. Down an inheritance hierarchy
457
 
*/
458
 
SWIGRUNTIME swig_type_info *
459
 
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
460
 
  swig_type_info *lastty = ty;
461
 
  if (!ty || !ty->dcast) return ty;
462
 
  while (ty && (ty->dcast)) {
463
 
    ty = (*ty->dcast)(ptr);
464
 
    if (ty) lastty = ty;
465
 
  }
466
 
  return lastty;
467
 
}
468
 
 
469
 
/*
470
 
  Return the name associated with this type
471
 
*/
472
 
SWIGRUNTIMEINLINE const char *
473
 
SWIG_TypeName(const swig_type_info *ty) {
474
 
  return ty->name;
475
 
}
476
 
 
477
 
/*
478
 
  Return the pretty name associated with this type,
479
 
  that is an unmangled type name in a form presentable to the user.
480
 
*/
481
 
SWIGRUNTIME const char *
482
 
SWIG_TypePrettyName(const swig_type_info *type) {
483
 
  /* The "str" field contains the equivalent pretty names of the
484
 
     type, separated by vertical-bar characters.  We choose
485
 
     to print the last name, as it is often (?) the most
486
 
     specific. */
487
 
  if (!type) return NULL;
488
 
  if (type->str != NULL) {
489
 
    const char *last_name = type->str;
490
 
    const char *s;
491
 
    for (s = type->str; *s; s++)
492
 
      if (*s == '|') last_name = s+1;
493
 
    return last_name;
494
 
  }
495
 
  else
496
 
    return type->name;
497
 
}
498
 
 
499
 
/* 
500
 
   Set the clientdata field for a type
501
 
*/
502
 
SWIGRUNTIME void
503
 
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
504
 
  swig_cast_info *cast = ti->cast;
505
 
  /* if (ti->clientdata == clientdata) return; */
506
 
  ti->clientdata = clientdata;
507
 
  
508
 
  while (cast) {
509
 
    if (!cast->converter) {
510
 
      swig_type_info *tc = cast->type;
511
 
      if (!tc->clientdata) {
512
 
        SWIG_TypeClientData(tc, clientdata);
513
 
      }
514
 
    }    
515
 
    cast = cast->next;
516
 
  }
517
 
}
518
 
SWIGRUNTIME void
519
 
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
520
 
  SWIG_TypeClientData(ti, clientdata);
521
 
  ti->owndata = 1;
522
 
}
523
 
  
524
 
/*
525
 
  Search for a swig_type_info structure only by mangled name
526
 
  Search is a O(log #types)
527
 
  
528
 
  We start searching at module start, and finish searching when start == end.  
529
 
  Note: if start == end at the beginning of the function, we go all the way around
530
 
  the circular list.
531
 
*/
532
 
SWIGRUNTIME swig_type_info *
533
 
SWIG_MangledTypeQueryModule(swig_module_info *start, 
534
 
                            swig_module_info *end, 
535
 
                            const char *name) {
536
 
  swig_module_info *iter = start;
537
 
  do {
538
 
    if (iter->size) {
539
 
      register size_t l = 0;
540
 
      register size_t r = iter->size - 1;
541
 
      do {
542
 
        /* since l+r >= 0, we can (>> 1) instead (/ 2) */
543
 
        register size_t i = (l + r) >> 1; 
544
 
        const char *iname = iter->types[i]->name;
545
 
        if (iname) {
546
 
          register int compare = strcmp(name, iname);
547
 
          if (compare == 0) {       
548
 
            return iter->types[i];
549
 
          } else if (compare < 0) {
550
 
            if (i) {
551
 
              r = i - 1;
552
 
            } else {
553
 
              break;
554
 
            }
555
 
          } else if (compare > 0) {
556
 
            l = i + 1;
557
 
          }
558
 
        } else {
559
 
          break; /* should never happen */
560
 
        }
561
 
      } while (l <= r);
562
 
    }
563
 
    iter = iter->next;
564
 
  } while (iter != end);
565
 
  return 0;
566
 
}
567
 
 
568
 
/*
569
 
  Search for a swig_type_info structure for either a mangled name or a human readable name.
570
 
  It first searches the mangled names of the types, which is a O(log #types)
571
 
  If a type is not found it then searches the human readable names, which is O(#types).
572
 
  
573
 
  We start searching at module start, and finish searching when start == end.  
574
 
  Note: if start == end at the beginning of the function, we go all the way around
575
 
  the circular list.
576
 
*/
577
 
SWIGRUNTIME swig_type_info *
578
 
SWIG_TypeQueryModule(swig_module_info *start, 
579
 
                     swig_module_info *end, 
580
 
                     const char *name) {
581
 
  /* STEP 1: Search the name field using binary search */
582
 
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
583
 
  if (ret) {
584
 
    return ret;
585
 
  } else {
586
 
    /* STEP 2: If the type hasn't been found, do a complete search
587
 
       of the str field (the human readable name) */
588
 
    swig_module_info *iter = start;
589
 
    do {
590
 
      register size_t i = 0;
591
 
      for (; i < iter->size; ++i) {
592
 
        if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
593
 
          return iter->types[i];
594
 
      }
595
 
      iter = iter->next;
596
 
    } while (iter != end);
597
 
  }
598
 
  
599
 
  /* neither found a match */
600
 
  return 0;
601
 
}
602
 
 
603
 
/* 
604
 
   Pack binary data into a string
605
 
*/
606
 
SWIGRUNTIME char *
607
 
SWIG_PackData(char *c, void *ptr, size_t sz) {
608
 
  static const char hex[17] = "0123456789abcdef";
609
 
  register const unsigned char *u = (unsigned char *) ptr;
610
 
  register const unsigned char *eu =  u + sz;
611
 
  for (; u != eu; ++u) {
612
 
    register unsigned char uu = *u;
613
 
    *(c++) = hex[(uu & 0xf0) >> 4];
614
 
    *(c++) = hex[uu & 0xf];
615
 
  }
616
 
  return c;
617
 
}
618
 
 
619
 
/* 
620
 
   Unpack binary data from a string
621
 
*/
622
 
SWIGRUNTIME const char *
623
 
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
624
 
  register unsigned char *u = (unsigned char *) ptr;
625
 
  register const unsigned char *eu = u + sz;
626
 
  for (; u != eu; ++u) {
627
 
    register char d = *(c++);
628
 
    register unsigned char uu;
629
 
    if ((d >= '0') && (d <= '9'))
630
 
      uu = ((d - '0') << 4);
631
 
    else if ((d >= 'a') && (d <= 'f'))
632
 
      uu = ((d - ('a'-10)) << 4);
633
 
    else 
634
 
      return (char *) 0;
635
 
    d = *(c++);
636
 
    if ((d >= '0') && (d <= '9'))
637
 
      uu |= (d - '0');
638
 
    else if ((d >= 'a') && (d <= 'f'))
639
 
      uu |= (d - ('a'-10));
640
 
    else 
641
 
      return (char *) 0;
642
 
    *u = uu;
643
 
  }
644
 
  return c;
645
 
}
646
 
 
647
 
/* 
648
 
   Pack 'void *' into a string buffer.
649
 
*/
650
 
SWIGRUNTIME char *
651
 
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
652
 
  char *r = buff;
653
 
  if ((2*sizeof(void *) + 2) > bsz) return 0;
654
 
  *(r++) = '_';
655
 
  r = SWIG_PackData(r,&ptr,sizeof(void *));
656
 
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
657
 
  strcpy(r,name);
658
 
  return buff;
659
 
}
660
 
 
661
 
SWIGRUNTIME const char *
662
 
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
663
 
  if (*c != '_') {
664
 
    if (strcmp(c,"NULL") == 0) {
665
 
      *ptr = (void *) 0;
666
 
      return name;
667
 
    } else {
668
 
      return 0;
669
 
    }
670
 
  }
671
 
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
672
 
}
673
 
 
674
 
SWIGRUNTIME char *
675
 
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
676
 
  char *r = buff;
677
 
  size_t lname = (name ? strlen(name) : 0);
678
 
  if ((2*sz + 2 + lname) > bsz) return 0;
679
 
  *(r++) = '_';
680
 
  r = SWIG_PackData(r,ptr,sz);
681
 
  if (lname) {
682
 
    strncpy(r,name,lname+1);
683
 
  } else {
684
 
    *r = 0;
685
 
  }
686
 
  return buff;
687
 
}
688
 
 
689
 
SWIGRUNTIME const char *
690
 
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
691
 
  if (*c != '_') {
692
 
    if (strcmp(c,"NULL") == 0) {
693
 
      memset(ptr,0,sz);
694
 
      return name;
695
 
    } else {
696
 
      return 0;
697
 
    }
698
 
  }
699
 
  return SWIG_UnpackData(++c,ptr,sz);
700
 
}
701
 
 
702
 
#ifdef __cplusplus
703
 
}
704
 
#endif
705
 
 
706
 
/* -----------------------------------------------------------------------------
707
 
 * See the LICENSE file for information on copyright, usage and redistribution
708
 
 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
709
 
 *
710
 
 * luarun.swg
711
 
 *
712
 
 * This file contains the runtime support for Lua modules
713
 
 * and includes code for managing global variables and pointer
714
 
 * type checking.
715
 
 * ----------------------------------------------------------------------------- */
716
 
 
717
 
#ifdef __cplusplus
718
 
extern "C" {
719
 
#endif
720
 
 
721
 
#include "lua.h"
722
 
#include "lauxlib.h"
723
 
#include <stdlib.h>  /* for malloc */
724
 
#include <assert.h>  /* for a few sanity tests */
725
 
 
726
 
/* -----------------------------------------------------------------------------
727
 
 * global swig types
728
 
 * ----------------------------------------------------------------------------- */
729
 
/* Constant table */
730
 
#define SWIG_LUA_INT     1
731
 
#define SWIG_LUA_FLOAT   2
732
 
#define SWIG_LUA_STRING  3
733
 
#define SWIG_LUA_POINTER 4
734
 
#define SWIG_LUA_BINARY  5
735
 
#define SWIG_LUA_CHAR    6
736
 
 
737
 
/* Structure for variable linking table */
738
 
typedef struct {
739
 
  const char *name;
740
 
  lua_CFunction get;
741
 
  lua_CFunction set;
742
 
} swig_lua_var_info;
743
 
 
744
 
/* Constant information structure */
745
 
typedef struct {
746
 
    int type;
747
 
    char *name;
748
 
    long lvalue;
749
 
    double dvalue;
750
 
    void   *pvalue;
751
 
    swig_type_info **ptype;
752
 
} swig_lua_const_info;
753
 
 
754
 
typedef struct {
755
 
  const char     *name;
756
 
  lua_CFunction   method;
757
 
} swig_lua_method;
758
 
 
759
 
typedef struct {
760
 
  const char     *name;
761
 
  lua_CFunction   getmethod;
762
 
  lua_CFunction   setmethod;
763
 
} swig_lua_attribute;
764
 
 
765
 
typedef struct swig_lua_class {
766
 
  const char    *name;
767
 
  swig_type_info   **type;
768
 
  lua_CFunction  constructor;
769
 
  void    (*destructor)(void *);
770
 
  swig_lua_method   *methods;
771
 
  swig_lua_attribute     *attributes;
772
 
  struct swig_lua_class **bases;
773
 
  const char **base_names;
774
 
} swig_lua_class;
775
 
 
776
 
/* this is the struct for wrappering all pointers in SwigLua
777
 
*/
778
 
typedef struct {
779
 
  swig_type_info   *type;
780
 
  int     own;  /* 1 if owned & must be destroyed */
781
 
  void        *ptr;
782
 
} swig_lua_userdata;
783
 
 
784
 
/* this is the struct for wrapping arbitary packed binary data
785
 
(currently it is only used for member function pointers)
786
 
the data ordering is similar to swig_lua_userdata, but it is currently not possible
787
 
to tell the two structures apart within Swig, other than by looking at the type
788
 
*/
789
 
typedef struct {
790
 
  swig_type_info   *type;
791
 
  int     own;  /* 1 if owned & must be destroyed */
792
 
  char data[1];       /* arbitary amount of data */    
793
 
} swig_lua_rawdata;
794
 
 
795
 
/* Common SWIG API */
796
 
#define SWIG_NewPointerObj(L, ptr, type, owner)       SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
797
 
#define SWIG_ConvertPtr(L,idx, ptr, type, flags)    SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
798
 
#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname)  SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
799
 
/* for C++ member pointers, ie, member methods */
800
 
#define SWIG_ConvertMember(L, idx, ptr, sz, ty)       SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
801
 
#define SWIG_NewMemberObj(L, ptr, sz, type)      SWIG_Lua_NewPackedObj(L, ptr, sz, type)
802
 
 
803
 
/* Runtime API */
804
 
#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata))
805
 
#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
806
 
#define SWIG_MODULE_CLIENTDATA_TYPE lua_State*
807
 
 
808
 
/* Contract support */
809
 
#define SWIG_contract_assert(expr, msg)  \
810
 
  if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else
811
 
 
812
 
/* helper #defines */
813
 
#define SWIG_fail {goto fail;}
814
 
#define SWIG_fail_arg(func_name,argnum,type) \
815
 
  {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
816
 
  func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
817
 
  goto fail;}
818
 
#define SWIG_fail_ptr(func_name,argnum,type) \
819
 
  SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
820
 
#define SWIG_check_num_args(func_name,a,b) \
821
 
  if (lua_gettop(L)<a || lua_gettop(L)>b) \
822
 
  {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
823
 
  goto fail;}
824
 
 
825
 
 
826
 
#define SWIG_Lua_get_table(L,n) \
827
 
  (lua_pushstring(L, n), lua_rawget(L,-2))
828
 
 
829
 
#define SWIG_Lua_add_function(L,n,f) \
830
 
  (lua_pushstring(L, n), \
831
 
      lua_pushcfunction(L, f), \
832
 
      lua_rawset(L,-3))
833
 
 
834
 
/* special helper for allowing 'nil' for usertypes */
835
 
#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I))
836
 
 
837
 
#ifdef __cplusplus
838
 
/* Special helper for member function pointers 
839
 
it gets the address, casts it, then dereferences it */
840
 
//#define SWIG_mem_fn_as_voidptr(a)  (*((char**)&(a)))
841
 
#endif
842
 
 
843
 
/* storing/access of swig_module_info */
844
 
SWIGRUNTIME swig_module_info *
845
 
SWIG_Lua_GetModule(lua_State* L) {
846
 
  swig_module_info *ret = 0;
847
 
  lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
848
 
  lua_rawget(L,LUA_REGISTRYINDEX);
849
 
  if (lua_islightuserdata(L,-1))
850
 
    ret=(swig_module_info*)lua_touserdata(L,-1);
851
 
  lua_pop(L,1);  /* tidy */
852
 
  return ret;
853
 
}
854
 
 
855
 
SWIGRUNTIME void
856
 
SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) {
857
 
  /* add this all into the Lua registry: */
858
 
  lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
859
 
  lua_pushlightuserdata(L,(void*)module);
860
 
  lua_rawset(L,LUA_REGISTRYINDEX);
861
 
}
862
 
 
863
 
/* -----------------------------------------------------------------------------
864
 
 * global variable support code: modules
865
 
 * ----------------------------------------------------------------------------- */
866
 
 
867
 
/* this function is called when trying to set an immutable.
868
 
default value is to print an error.
869
 
This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */
870
 
SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L)
871
 
{
872
 
/*  there should be 1 param passed in: the new value */
873
 
#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
874
 
  lua_pop(L,1);  /* remove it */
875
 
  lua_pushstring(L,"This variable is immutable");
876
 
  lua_error(L);
877
 
#endif
878
 
    return 0;   /* should not return anything */
879
 
}
880
 
 
881
 
/* the module.get method used for getting linked data */
882
 
SWIGINTERN int SWIG_Lua_module_get(lua_State* L)
883
 
{
884
 
/*  there should be 2 params passed in
885
 
  (1) table (not the meta table)
886
 
  (2) string name of the attribute
887
 
  printf("SWIG_Lua_module_get %p(%s) '%s'\n",
888
 
   lua_topointer(L,1),lua_typename(L,lua_type(L,1)),
889
 
   lua_tostring(L,2));
890
 
*/
891
 
  /* get the metatable */
892
 
  assert(lua_istable(L,1));  /* just in case */
893
 
  lua_getmetatable(L,1);  /* get the metatable */
894
 
  assert(lua_istable(L,-1));  /* just in case */
895
 
  SWIG_Lua_get_table(L,".get");  /* get the .get table */
896
 
  lua_remove(L,3);  /* remove metatable */
897
 
  if (lua_istable(L,-1))
898
 
  {
899
 
    /* look for the key in the .get table */
900
 
    lua_pushvalue(L,2);  /* key */
901
 
    lua_rawget(L,-2);
902
 
    lua_remove(L,3);  /* remove .get */
903
 
    if (lua_iscfunction(L,-1))
904
 
    {  /* found it so call the fn & return its value */
905
 
      lua_call(L,0,1);
906
 
      return 1;
907
 
    }
908
 
    lua_pop(L,1);  /* remove the top */
909
 
  }
910
 
  lua_pop(L,1);  /* remove the .get */
911
 
  lua_pushnil(L);  /* return a nil */
912
 
    return 1;
913
 
}
914
 
 
915
 
/* the module.set method used for setting linked data */
916
 
SWIGINTERN int SWIG_Lua_module_set(lua_State* L)
917
 
{
918
 
/*  there should be 3 params passed in
919
 
  (1) table (not the meta table)
920
 
  (2) string name of the attribute
921
 
  (3) any for the new value
922
 
*/
923
 
  /* get the metatable */
924
 
  assert(lua_istable(L,1));  /* just in case */
925
 
  lua_getmetatable(L,1);  /* get the metatable */
926
 
  assert(lua_istable(L,-1));  /* just in case */
927
 
  SWIG_Lua_get_table(L,".set");  /* get the .set table */
928
 
  lua_remove(L,4);  /* remove metatable */
929
 
  if (lua_istable(L,-1))
930
 
  {
931
 
    /* look for the key in the .set table */
932
 
    lua_pushvalue(L,2);  /* key */
933
 
    lua_rawget(L,-2);
934
 
    lua_remove(L,4);  /* remove .set */
935
 
    if (lua_iscfunction(L,-1))
936
 
    {  /* found it so call the fn & return its value */
937
 
      lua_pushvalue(L,3);  /* value */
938
 
      lua_call(L,1,0);
939
 
      return 0;
940
 
    }
941
 
  }
942
 
  lua_settop(L,3);  /* reset back to start */
943
 
  /* we now have the table, key & new value, so just set directly */
944
 
  lua_rawset(L,1);  /* add direct */
945
 
  return 0;
946
 
}
947
 
 
948
 
/* registering a module in lua */
949
 
SWIGINTERN void  SWIG_Lua_module_begin(lua_State* L,const char* name)
950
 
{
951
 
  assert(lua_istable(L,-1));  /* just in case */
952
 
  lua_pushstring(L,name);
953
 
  lua_newtable(L);   /* the table */
954
 
  /* add meta table */
955
 
  lua_newtable(L);    /* the meta table */
956
 
  SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get);
957
 
  SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set);
958
 
  lua_pushstring(L,".get");
959
 
  lua_newtable(L);    /* the .get table */
960
 
  lua_rawset(L,-3);  /* add .get into metatable */
961
 
  lua_pushstring(L,".set");
962
 
  lua_newtable(L);    /* the .set table */
963
 
  lua_rawset(L,-3);  /* add .set into metatable */
964
 
  lua_setmetatable(L,-2);  /* sets meta table in module */
965
 
  lua_rawset(L,-3);        /* add module into parent */
966
 
  SWIG_Lua_get_table(L,name);   /* get the table back out */
967
 
}
968
 
 
969
 
/* ending the register */
970
 
SWIGINTERN void  SWIG_Lua_module_end(lua_State* L)
971
 
{
972
 
  lua_pop(L,1);       /* tidy stack (remove module) */
973
 
}
974
 
 
975
 
/* adding a linked variable to the module */
976
 
SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn)
977
 
{
978
 
  assert(lua_istable(L,-1));  /* just in case */
979
 
  lua_getmetatable(L,-1);  /* get the metatable */
980
 
  assert(lua_istable(L,-1));  /* just in case */
981
 
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
982
 
  assert(lua_istable(L,-1));  /* should be a table: */
983
 
  SWIG_Lua_add_function(L,name,getFn);
984
 
  lua_pop(L,1);       /* tidy stack (remove table) */
985
 
  if (setFn)  /* if there is a set fn */
986
 
  {
987
 
    SWIG_Lua_get_table(L,".set"); /* find the .set table */
988
 
    assert(lua_istable(L,-1));  /* should be a table: */
989
 
    SWIG_Lua_add_function(L,name,setFn);
990
 
    lua_pop(L,1);       /* tidy stack (remove table) */
991
 
  }
992
 
  lua_pop(L,1);       /* tidy stack (remove meta) */
993
 
}
994
 
 
995
 
/* adding a function module */
996
 
SWIGINTERN void  SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn)
997
 
{
998
 
  SWIG_Lua_add_function(L,name,fn);
999
 
}
1000
 
 
1001
 
/* -----------------------------------------------------------------------------
1002
 
 * global variable support code: classes
1003
 
 * ----------------------------------------------------------------------------- */
1004
 
 
1005
 
/* the class.get method, performs the lookup of class attributes */
1006
 
SWIGINTERN int  SWIG_Lua_class_get(lua_State* L)
1007
 
{
1008
 
/*  there should be 2 params passed in
1009
 
  (1) userdata (not the meta table)
1010
 
  (2) string name of the attribute
1011
 
*/
1012
 
  assert(lua_isuserdata(L,-2));  /* just in case */
1013
 
  lua_getmetatable(L,-2);    /* get the meta table */
1014
 
  assert(lua_istable(L,-1));  /* just in case */
1015
 
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
1016
 
  assert(lua_istable(L,-1));  /* just in case */
1017
 
  /* look for the key in the .get table */
1018
 
  lua_pushvalue(L,2);  /* key */
1019
 
  lua_rawget(L,-2);
1020
 
  lua_remove(L,-2); /* stack tidy, remove .get table */
1021
 
  if (lua_iscfunction(L,-1))
1022
 
  {  /* found it so call the fn & return its value */
1023
 
    lua_pushvalue(L,1);  /* the userdata */
1024
 
    lua_call(L,1,1);  /* 1 value in (userdata),1 out (result) */
1025
 
    lua_remove(L,-2); /* stack tidy, remove metatable */
1026
 
    return 1;
1027
 
  }
1028
 
  lua_pop(L,1);  /* remove whatever was there */
1029
 
  /* ok, so try the .fn table */
1030
 
  SWIG_Lua_get_table(L,".fn"); /* find the .get table */
1031
 
  assert(lua_istable(L,-1));  /* just in case */
1032
 
  lua_pushvalue(L,2);  /* key */
1033
 
  lua_rawget(L,-2);  /* look for the fn */
1034
 
  lua_remove(L,-2); /* stack tidy, remove .fn table */
1035
 
  if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */
1036
 
  {  /* found it so return the fn & let lua call it */
1037
 
    lua_remove(L,-2); /* stack tidy, remove metatable */
1038
 
    return 1;
1039
 
  }
1040
 
  lua_pop(L,1);  /* remove whatever was there */
1041
 
  /* NEW: looks for the __getitem() fn
1042
 
  this is a user provided get fn */
1043
 
  SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */
1044
 
  if (lua_iscfunction(L,-1))  /* if its there */
1045
 
  {  /* found it so call the fn & return its value */
1046
 
    lua_pushvalue(L,1);  /* the userdata */
1047
 
    lua_pushvalue(L,2);  /* the parameter */
1048
 
    lua_call(L,2,1);  /* 2 value in (userdata),1 out (result) */
1049
 
    lua_remove(L,-2); /* stack tidy, remove metatable */
1050
 
    return 1;
1051
 
  }
1052
 
  return 0;  /* sorry not known */
1053
 
}
1054
 
 
1055
 
/* the class.set method, performs the lookup of class attributes */
1056
 
SWIGINTERN int  SWIG_Lua_class_set(lua_State* L)
1057
 
{
1058
 
/*  there should be 3 params passed in
1059
 
  (1) table (not the meta table)
1060
 
  (2) string name of the attribute
1061
 
  (3) any for the new value
1062
 
printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n",
1063
 
      lua_topointer(L,1),lua_typename(L,lua_type(L,1)),
1064
 
      lua_tostring(L,2),
1065
 
      lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/
1066
 
 
1067
 
  assert(lua_isuserdata(L,1));  /* just in case */
1068
 
  lua_getmetatable(L,1);    /* get the meta table */
1069
 
  assert(lua_istable(L,-1));  /* just in case */
1070
 
 
1071
 
  SWIG_Lua_get_table(L,".set"); /* find the .set table */
1072
 
  if (lua_istable(L,-1))
1073
 
  {
1074
 
    /* look for the key in the .set table */
1075
 
    lua_pushvalue(L,2);  /* key */
1076
 
    lua_rawget(L,-2);
1077
 
    if (lua_iscfunction(L,-1))
1078
 
    {  /* found it so call the fn & return its value */
1079
 
      lua_pushvalue(L,1);  /* userdata */
1080
 
      lua_pushvalue(L,3);  /* value */
1081
 
      lua_call(L,2,0);
1082
 
      return 0;
1083
 
    }
1084
 
    lua_pop(L,1);  /* remove the value */
1085
 
  }
1086
 
  lua_pop(L,1);  /* remove the value .set table */
1087
 
  /* NEW: looks for the __setitem() fn
1088
 
  this is a user provided set fn */
1089
 
  SWIG_Lua_get_table(L,"__setitem"); /* find the fn */
1090
 
  if (lua_iscfunction(L,-1))  /* if its there */
1091
 
  {  /* found it so call the fn & return its value */
1092
 
    lua_pushvalue(L,1);  /* the userdata */
1093
 
    lua_pushvalue(L,2);  /* the parameter */
1094
 
    lua_pushvalue(L,3);  /* the value */
1095
 
    lua_call(L,3,0);  /* 3 values in ,0 out */
1096
 
    lua_remove(L,-2); /* stack tidy, remove metatable */
1097
 
    return 1;
1098
 
  }
1099
 
  return 0;
1100
 
}
1101
 
 
1102
 
/* the class.destruct method called by the interpreter */
1103
 
SWIGINTERN int  SWIG_Lua_class_destruct(lua_State* L)
1104
 
{
1105
 
/*  there should be 1 params passed in
1106
 
  (1) userdata (not the meta table) */
1107
 
  swig_lua_userdata* usr;
1108
 
  swig_lua_class* clss;
1109
 
  assert(lua_isuserdata(L,-1));  /* just in case */
1110
 
  usr=(swig_lua_userdata*)lua_touserdata(L,-1);  /* get it */
1111
 
  /* if must be destroyed & has a destructor */
1112
 
  if (usr->own) /* if must be destroyed */
1113
 
  {
1114
 
    clss=(swig_lua_class*)usr->type->clientdata;  /* get the class */
1115
 
    if (clss && clss->destructor)  /* there is a destroy fn */
1116
 
    {
1117
 
      clss->destructor(usr->ptr);  /* bye bye */
1118
 
    }
1119
 
  }
1120
 
  return 0;
1121
 
}
1122
 
 
1123
 
/* gets the swig class registry (or creates it) */
1124
 
SWIGINTERN void  SWIG_Lua_get_class_registry(lua_State* L)
1125
 
{
1126
 
  /* add this all into the swig registry: */
1127
 
  lua_pushstring(L,"SWIG");
1128
 
  lua_rawget(L,LUA_REGISTRYINDEX);  /* get the registry */
1129
 
  if (!lua_istable(L,-1))  /* not there */
1130
 
  {  /* must be first time, so add it */
1131
 
    lua_pop(L,1);  /* remove the result */
1132
 
    lua_pushstring(L,"SWIG");
1133
 
    lua_newtable(L);
1134
 
    lua_rawset(L,LUA_REGISTRYINDEX);
1135
 
    /* then get it */
1136
 
    lua_pushstring(L,"SWIG");
1137
 
    lua_rawget(L,LUA_REGISTRYINDEX);
1138
 
  }
1139
 
}
1140
 
 
1141
 
/* helper fn to get the classes metatable from the register */
1142
 
SWIGINTERN void  SWIG_Lua_get_class_metatable(lua_State* L,const char* cname)
1143
 
{
1144
 
  SWIG_Lua_get_class_registry(L);  /* get the registry */
1145
 
  lua_pushstring(L,cname);  /* get the name */
1146
 
  lua_rawget(L,-2);    /* get it */
1147
 
  lua_remove(L,-2);    /* tidy up (remove registry) */
1148
 
}
1149
 
 
1150
 
/* helper add a variable to a registered class */
1151
 
SWIGINTERN void  SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn)
1152
 
{
1153
 
  assert(lua_istable(L,-1));  /* just in case */
1154
 
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
1155
 
  assert(lua_istable(L,-1));  /* just in case */
1156
 
  SWIG_Lua_add_function(L,name,getFn);
1157
 
  lua_pop(L,1);       /* tidy stack (remove table) */
1158
 
  if (setFn)
1159
 
  {
1160
 
    SWIG_Lua_get_table(L,".set"); /* find the .set table */
1161
 
    assert(lua_istable(L,-1));  /* just in case */
1162
 
    SWIG_Lua_add_function(L,name,setFn);
1163
 
    lua_pop(L,1);       /* tidy stack (remove table) */
1164
 
  }
1165
 
}
1166
 
 
1167
 
/* helper to recursively add class details (attributes & operations) */
1168
 
SWIGINTERN void  SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss)
1169
 
{
1170
 
  int i;
1171
 
  /* call all the base classes first: we can then override these later: */
1172
 
  for(i=0;clss->bases[i];i++)
1173
 
  {
1174
 
    SWIG_Lua_add_class_details(L,clss->bases[i]);
1175
 
  }
1176
 
  /* add fns */
1177
 
  for(i=0;clss->attributes[i].name;i++){
1178
 
    SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod);
1179
 
  }
1180
 
  /* add methods to the metatable */
1181
 
  SWIG_Lua_get_table(L,".fn"); /* find the .fn table */
1182
 
  assert(lua_istable(L,-1));  /* just in case */
1183
 
  for(i=0;clss->methods[i].name;i++){
1184
 
    SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method);
1185
 
  }
1186
 
  lua_pop(L,1);       /* tidy stack (remove table) */
1187
 
  /*   add operator overloads
1188
 
    these look ANY method which start with "__" and assume they
1189
 
    are operator overloads & add them to the metatable
1190
 
    (this might mess up is someone defines a method __gc (the destructor)*/
1191
 
  for(i=0;clss->methods[i].name;i++){
1192
 
    if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){
1193
 
      SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method);
1194
 
    }
1195
 
  }
1196
 
}
1197
 
 
1198
 
/* set up the base classes pointers.
1199
 
Each class structure has a list of pointers to the base class structures.
1200
 
This function fills them.
1201
 
It cannot be done at compile time, as this will not work with hireachies
1202
 
spread over more than one swig file. 
1203
 
Therefore it must be done at runtime, querying the SWIG type system.
1204
 
*/
1205
 
SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss)
1206
 
{
1207
 
  int i=0;
1208
 
  swig_module_info* module=SWIG_GetModule(L);
1209
 
  for(i=0;clss->base_names[i];i++)
1210
 
  {
1211
 
    if (clss->bases[i]==0) /* not found yet */
1212
 
    {
1213
 
      /* lookup and cache the base class */
1214
 
      swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]);
1215
 
      if (info) clss->bases[i] = (swig_lua_class *) info->clientdata;
1216
 
    }
1217
 
  }     
1218
 
}
1219
 
 
1220
 
/* performs the entire class registration process */
1221
 
SWIGINTERN void  SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
1222
 
{
1223
 
  /*  add its constructor to module with the name of the class
1224
 
  so you can do MyClass(...) as well as new_MyClass(...)
1225
 
  BUT only if a constructor is defined
1226
 
  (this overcomes the problem of pure virtual classes without constructors)*/
1227
 
  if (clss->constructor)
1228
 
    SWIG_Lua_add_function(L,clss->name,clss->constructor);
1229
 
 
1230
 
  SWIG_Lua_get_class_registry(L);  /* get the registry */
1231
 
  lua_pushstring(L,clss->name);  /* get the name */
1232
 
  lua_newtable(L);    /* create the metatable */
1233
 
  /* add string of class name called ".type" */
1234
 
  lua_pushstring(L,".type");
1235
 
  lua_pushstring(L,clss->name);
1236
 
  lua_rawset(L,-3);
1237
 
  /* add a table called ".get" */
1238
 
  lua_pushstring(L,".get");
1239
 
  lua_newtable(L);
1240
 
  lua_rawset(L,-3);
1241
 
  /* add a table called ".set" */
1242
 
  lua_pushstring(L,".set");
1243
 
  lua_newtable(L);
1244
 
  lua_rawset(L,-3);
1245
 
  /* add a table called ".fn" */
1246
 
  lua_pushstring(L,".fn");
1247
 
  lua_newtable(L);
1248
 
  lua_rawset(L,-3);
1249
 
  /* add accessor fns for using the .get,.set&.fn */
1250
 
  SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get);
1251
 
  SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set);
1252
 
  SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct);
1253
 
  /* add it */
1254
 
  lua_rawset(L,-3);  /* metatable into registry */
1255
 
  lua_pop(L,1);      /* tidy stack (remove registry) */
1256
 
 
1257
 
  SWIG_Lua_get_class_metatable(L,clss->name);
1258
 
  SWIG_Lua_add_class_details(L,clss);  /* recursive adding of details (atts & ops) */
1259
 
  lua_pop(L,1);      /* tidy stack (remove class metatable) */
1260
 
}
1261
 
 
1262
 
/* -----------------------------------------------------------------------------
1263
 
 * Class/structure conversion fns
1264
 
 * ----------------------------------------------------------------------------- */
1265
 
 
1266
 
/* helper to add metatable to new lua object */
1267
 
SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type)
1268
 
{
1269
 
  if (type->clientdata)  /* there is clientdata: so add the metatable */
1270
 
  {
1271
 
    SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name);
1272
 
    if (lua_istable(L,-1))
1273
 
    {
1274
 
      lua_setmetatable(L,-2);
1275
 
    }
1276
 
    else
1277
 
    {
1278
 
      lua_pop(L,1);
1279
 
    }
1280
 
  }
1281
 
}
1282
 
 
1283
 
/* pushes a new object into the lua stack */
1284
 
SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own)
1285
 
{
1286
 
  swig_lua_userdata* usr;
1287
 
  if (!ptr){
1288
 
    lua_pushnil(L);
1289
 
    return;
1290
 
  }
1291
 
  usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata));  /* get data */
1292
 
  usr->ptr=ptr;  /* set the ptr */
1293
 
  usr->type=type;
1294
 
  usr->own=own;
1295
 
  _SWIG_Lua_AddMetatable(L,type); /* add metatable */
1296
 
}
1297
 
 
1298
 
/* takes a object from the lua stack & converts it into an object of the correct type
1299
 
 (if possible) */
1300
 
SWIGRUNTIME int  SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags)
1301
 
{
1302
 
  swig_lua_userdata* usr;
1303
 
  swig_cast_info *cast;
1304
 
  if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;}    /* special case: lua nil => NULL pointer */
1305
 
  usr=(swig_lua_userdata*)lua_touserdata(L,index);  /* get data */
1306
 
  if (usr)
1307
 
  {
1308
 
    if (flags & SWIG_POINTER_DISOWN) /* must disown the object */
1309
 
    {
1310
 
        usr->own=0;
1311
 
    }
1312
 
    if (!type)            /* special cast void*, no casting fn */
1313
 
    {
1314
 
      *ptr=usr->ptr;
1315
 
      return SWIG_OK; /* ok */
1316
 
    }
1317
 
    cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */
1318
 
    if (cast)
1319
 
    {
1320
 
      int newmemory = 0;
1321
 
      *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory);
1322
 
      assert(!newmemory); /* newmemory handling not yet implemented */
1323
 
      return SWIG_OK;  /* ok */
1324
 
    }
1325
 
  }
1326
 
  return SWIG_ERROR;  /* error */
1327
 
}
1328
 
 
1329
 
SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags,
1330
 
       int argnum,const char* func_name){
1331
 
  void* result;
1332
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){
1333
 
    lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n",
1334
 
      func_name,(type && type->str)?type->str:"void*",argnum);
1335
 
    lua_error(L);
1336
 
  }
1337
 
  return result;
1338
 
}
1339
 
 
1340
 
/* pushes a packed userdata. user for member fn pointers only */
1341
 
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type)
1342
 
{
1343
 
  swig_lua_rawdata* raw;
1344
 
  assert(ptr); /* not acceptable to pass in a NULL value */
1345
 
  raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size);  /* alloc data */
1346
 
  raw->type=type;
1347
 
  raw->own=0;
1348
 
  memcpy(raw->data,ptr,size); /* copy the data */
1349
 
  _SWIG_Lua_AddMetatable(L,type); /* add metatable */
1350
 
}
1351
 
    
1352
 
/* converts a packed userdata. user for member fn pointers only */
1353
 
SWIGRUNTIME int  SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type)
1354
 
{
1355
 
  swig_lua_rawdata* raw;
1356
 
  raw=(swig_lua_rawdata*)lua_touserdata(L,index);  /* get data */
1357
 
  if (!raw) return SWIG_ERROR;  /* error */
1358
 
  if (type==0 || type==raw->type) /* void* or identical type */
1359
 
  {
1360
 
    memcpy(ptr,raw->data,size); /* copy it */
1361
 
    return SWIG_OK; /* ok */
1362
 
  }
1363
 
  return SWIG_ERROR;  /* error */
1364
 
}
1365
 
 
1366
 
/* a function to get the typestring of a piece of data */
1367
 
SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp)
1368
 
{
1369
 
  swig_lua_userdata* usr;
1370
 
  if (lua_isuserdata(L,tp))
1371
 
  {
1372
 
    usr=(swig_lua_userdata*)lua_touserdata(L,1);  /* get data */
1373
 
    if (usr && usr->type && usr->type->str)
1374
 
      return usr->type->str;
1375
 
    return "userdata (unknown type)";
1376
 
  }
1377
 
  return lua_typename(L,lua_type(L,tp));
1378
 
}
1379
 
 
1380
 
/* lua callable function to get the userdata's type */
1381
 
SWIGRUNTIME int SWIG_Lua_type(lua_State* L)
1382
 
{
1383
 
  lua_pushstring(L,SWIG_Lua_typename(L,1));
1384
 
  return 1;
1385
 
}
1386
 
 
1387
 
/* lua callable function to compare userdata's value
1388
 
the issue is that two userdata may point to the same thing
1389
 
but to lua, they are different objects */
1390
 
SWIGRUNTIME int SWIG_Lua_equal(lua_State* L)
1391
 
{
1392
 
  int result;
1393
 
  swig_lua_userdata *usr1,*usr2;
1394
 
  if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2))  /* just in case */
1395
 
    return 0;  /* nil reply */
1396
 
  usr1=(swig_lua_userdata*)lua_touserdata(L,1);  /* get data */
1397
 
  usr2=(swig_lua_userdata*)lua_touserdata(L,2);  /* get data */
1398
 
  /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/
1399
 
  result=(usr1->ptr==usr2->ptr);
1400
 
   lua_pushboolean(L,result);
1401
 
  return 1;
1402
 
}
1403
 
 
1404
 
/* -----------------------------------------------------------------------------
1405
 
 * global variable support code: class/struct typemap functions
1406
 
 * ----------------------------------------------------------------------------- */
1407
 
 
1408
 
/* Install Constants */
1409
 
SWIGINTERN void
1410
 
SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) {
1411
 
  int i;
1412
 
  for (i = 0; constants[i].type; i++) {
1413
 
    switch(constants[i].type) {
1414
 
    case SWIG_LUA_INT:
1415
 
      lua_pushstring(L,constants[i].name);
1416
 
      lua_pushnumber(L,(lua_Number)constants[i].lvalue);
1417
 
      lua_rawset(L,-3);
1418
 
      break;
1419
 
    case SWIG_LUA_FLOAT:
1420
 
      lua_pushstring(L,constants[i].name);
1421
 
      lua_pushnumber(L,(lua_Number)constants[i].dvalue);
1422
 
      lua_rawset(L,-3);
1423
 
      break;
1424
 
    case SWIG_LUA_CHAR:
1425
 
      lua_pushstring(L,constants[i].name);
1426
 
      lua_pushfstring(L,"%c",(char)constants[i].lvalue);
1427
 
      lua_rawset(L,-3);
1428
 
      break;
1429
 
    case SWIG_LUA_STRING:
1430
 
      lua_pushstring(L,constants[i].name);
1431
 
      lua_pushstring(L,(char *) constants[i].pvalue);
1432
 
      lua_rawset(L,-3);
1433
 
      break;
1434
 
    case SWIG_LUA_POINTER:
1435
 
      lua_pushstring(L,constants[i].name);
1436
 
      SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0);
1437
 
      lua_rawset(L,-3);
1438
 
      break;
1439
 
    case SWIG_LUA_BINARY:
1440
 
      lua_pushstring(L,constants[i].name);
1441
 
      SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);
1442
 
      lua_rawset(L,-3);
1443
 
      break;
1444
 
    default:
1445
 
      break;
1446
 
    }
1447
 
  }
1448
 
}
1449
 
 
1450
 
/* -----------------------------------------------------------------------------
1451
 
 * executing lua code from within the wrapper
1452
 
 * ----------------------------------------------------------------------------- */
1453
 
 
1454
 
#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */
1455
 
#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
1456
 
#endif
1457
 
/* Executes a C string in Lua a really simple way of calling lua from C
1458
 
Unfortunately lua keeps changing its API's, so we need a conditional compile
1459
 
In lua 5.0.X its lua_dostring()
1460
 
In lua 5.1.X its luaL_dostring()
1461
 
*/
1462
 
SWIGINTERN int 
1463
 
SWIG_Lua_dostring(lua_State *L, const char* str) {
1464
 
  int ok,top;
1465
 
  if (str==0 || str[0]==0) return 0; /* nothing to do */
1466
 
  top=lua_gettop(L); /* save stack */
1467
 
#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501))
1468
 
  ok=luaL_dostring(L,str);      /* looks like this is lua 5.1.X or later, good */
1469
 
#else
1470
 
  ok=lua_dostring(L,str);       /* might be lua 5.0.x, using lua_dostring */
1471
 
#endif
1472
 
  if (ok!=0) {
1473
 
    SWIG_DOSTRING_FAIL(lua_tostring(L,-1));
1474
 
  }
1475
 
  lua_settop(L,top); /* restore the stack */
1476
 
  return ok;
1477
 
}    
1478
 
 
1479
 
#ifdef __cplusplus
1480
 
}
1481
 
#endif
1482
 
 
1483
 
/* ------------------------------ end luarun.swg  ------------------------------ */
1484
 
 
1485
 
 
1486
 
/* -------- TYPES TABLE (BEGIN) -------- */
1487
 
 
1488
 
#define SWIGTYPE_p_GHashTable swig_types[0]
1489
 
#define SWIGTYPE_p_GList swig_types[1]
1490
 
#define SWIGTYPE_p_GSList swig_types[2]
1491
 
#define SWIGTYPE_p_GTimeVal swig_types[3]
1492
 
#define SWIGTYPE_p_GtkButton swig_types[4]
1493
 
#define SWIGTYPE_p_GtkMenuItem swig_types[5]
1494
 
#define SWIGTYPE_p_GtkRadioAction swig_types[6]
1495
 
#define SWIGTYPE_p_GtkToggleAction swig_types[7]
1496
 
#define SWIGTYPE_p_GtkTreeIter swig_types[8]
1497
 
#define SWIGTYPE_p_GtkTreePath swig_types[9]
1498
 
#define SWIGTYPE_p_GtkTreeSelection swig_types[10]
1499
 
#define SWIGTYPE_p_GtkTreeSortable swig_types[11]
1500
 
#define SWIGTYPE_p_GtkTreeStore swig_types[12]
1501
 
#define SWIGTYPE_p_GtkTreeView swig_types[13]
1502
 
#define SWIGTYPE_p_GtkTreeViewColumn swig_types[14]
1503
 
#define SWIGTYPE_p_GtkWidget swig_types[15]
1504
 
#define SWIGTYPE_p_gpointer swig_types[16]
1505
 
#define SWIGTYPE_p_gulong swig_types[17]
1506
 
#define SWIGTYPE_p_item swig_types[18]
1507
 
#define SWIGTYPE_p_itemSetPtr swig_types[19]
1508
 
#define SWIGTYPE_p_node swig_types[20]
1509
 
#define SWIGTYPE_p_nodeSource swig_types[21]
1510
 
#define SWIGTYPE_p_nodeType swig_types[22]
1511
 
#define SWIGTYPE_p_nodeViewSortType swig_types[23]
1512
 
#define SWIGTYPE_p_nodeViewType swig_types[24]
1513
 
#define SWIGTYPE_p_socialSite swig_types[25]
1514
 
#define SWIGTYPE_p_subscription swig_types[26]
1515
 
#define SWIGTYPE_p_subscriptionType swig_types[27]
1516
 
#define SWIGTYPE_p_time_t swig_types[28]
1517
 
#define SWIGTYPE_p_updateJob swig_types[29]
1518
 
#define SWIGTYPE_p_updateOptionsPtr swig_types[30]
1519
 
#define SWIGTYPE_p_updateStatePtr swig_types[31]
1520
 
#define SWIGTYPE_p_xmlNodePtr swig_types[32]
1521
 
static swig_type_info *swig_types[34];
1522
 
static swig_module_info swig_module = {swig_types, 33, 0, 0, 0, 0};
1523
 
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1524
 
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1525
 
 
1526
 
/* -------- TYPES TABLE (END) -------- */
1527
 
 
1528
 
#define SWIG_name      "liferea"
1529
 
#define SWIG_init      luaopen_liferea
1530
 
#define SWIG_init_user luaopen_liferea_user
1531
 
 
1532
 
#define SWIG_LUACODE   luaopen_liferea_luacode
1533
 
 
1534
 
 
1535
 
#include "../node.h"
1536
 
#include "../feed.h"
1537
 
#include "../item.h"
1538
 
#include "../item_state.h"
1539
 
#include "../itemlist.h" 
1540
 
#include "../social.h"
1541
 
#include "../subscription.h"
1542
 
 
1543
 
#include "../ui/ui_feedlist.h"
1544
 
#include "../ui/ui_itemlist.h"
1545
 
#include "../ui/ui_node.h"
1546
 
 
1547
 
#ifdef __cplusplus
1548
 
extern "C" {
1549
 
#endif
1550
 
static int _wrap_node_data_set(lua_State* L) {
1551
 
  int SWIG_arg = 0;
1552
 
  struct node *arg1 = (struct node *) 0 ;
1553
 
  gpointer arg2 ;
1554
 
  gpointer *argp2 ;
1555
 
  
1556
 
  SWIG_check_num_args("data",2,2)
1557
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("data",1,"struct node *");
1558
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("data",2,"gpointer");
1559
 
  
1560
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1561
 
    SWIG_fail_ptr("node_data_set",1,SWIGTYPE_p_node);
1562
 
  }
1563
 
  
1564
 
  
1565
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
1566
 
    SWIG_fail_ptr("node_data_set",2,SWIGTYPE_p_gpointer);
1567
 
  }
1568
 
  arg2 = *argp2;
1569
 
  
1570
 
  if (arg1) (arg1)->data = arg2;
1571
 
  
1572
 
  return SWIG_arg;
1573
 
  
1574
 
  if(0) SWIG_fail;
1575
 
  
1576
 
fail:
1577
 
  lua_error(L);
1578
 
  return SWIG_arg;
1579
 
}
1580
 
 
1581
 
 
1582
 
static int _wrap_node_data_get(lua_State* L) {
1583
 
  int SWIG_arg = 0;
1584
 
  struct node *arg1 = (struct node *) 0 ;
1585
 
  gpointer result;
1586
 
  
1587
 
  SWIG_check_num_args("data",1,1)
1588
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("data",1,"struct node *");
1589
 
  
1590
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1591
 
    SWIG_fail_ptr("node_data_get",1,SWIGTYPE_p_node);
1592
 
  }
1593
 
  
1594
 
  result =  ((arg1)->data);
1595
 
  {
1596
 
    gpointer * resultptr;
1597
 
    resultptr = (gpointer *) malloc(sizeof(gpointer));
1598
 
    memmove(resultptr, &result, sizeof(gpointer));
1599
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gpointer,1); SWIG_arg++;
1600
 
  }
1601
 
  return SWIG_arg;
1602
 
  
1603
 
  if(0) SWIG_fail;
1604
 
  
1605
 
fail:
1606
 
  lua_error(L);
1607
 
  return SWIG_arg;
1608
 
}
1609
 
 
1610
 
 
1611
 
static int _wrap_node_subscription_set(lua_State* L) {
1612
 
  int SWIG_arg = 0;
1613
 
  struct node *arg1 = (struct node *) 0 ;
1614
 
  struct subscription *arg2 = (struct subscription *) 0 ;
1615
 
  
1616
 
  SWIG_check_num_args("subscription",2,2)
1617
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription",1,"struct node *");
1618
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("subscription",2,"struct subscription *");
1619
 
  
1620
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1621
 
    SWIG_fail_ptr("node_subscription_set",1,SWIGTYPE_p_node);
1622
 
  }
1623
 
  
1624
 
  
1625
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_subscription,SWIG_POINTER_DISOWN))){
1626
 
    SWIG_fail_ptr("node_subscription_set",2,SWIGTYPE_p_subscription);
1627
 
  }
1628
 
  
1629
 
  if (arg1) (arg1)->subscription = arg2;
1630
 
  
1631
 
  return SWIG_arg;
1632
 
  
1633
 
  if(0) SWIG_fail;
1634
 
  
1635
 
fail:
1636
 
  lua_error(L);
1637
 
  return SWIG_arg;
1638
 
}
1639
 
 
1640
 
 
1641
 
static int _wrap_node_subscription_get(lua_State* L) {
1642
 
  int SWIG_arg = 0;
1643
 
  struct node *arg1 = (struct node *) 0 ;
1644
 
  struct subscription *result = 0 ;
1645
 
  
1646
 
  SWIG_check_num_args("subscription",1,1)
1647
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription",1,"struct node *");
1648
 
  
1649
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1650
 
    SWIG_fail_ptr("node_subscription_get",1,SWIGTYPE_p_node);
1651
 
  }
1652
 
  
1653
 
  result = (struct subscription *) ((arg1)->subscription);
1654
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_subscription,0); SWIG_arg++; 
1655
 
  return SWIG_arg;
1656
 
  
1657
 
  if(0) SWIG_fail;
1658
 
  
1659
 
fail:
1660
 
  lua_error(L);
1661
 
  return SWIG_arg;
1662
 
}
1663
 
 
1664
 
 
1665
 
static int _wrap_node_type_set(lua_State* L) {
1666
 
  int SWIG_arg = 0;
1667
 
  struct node *arg1 = (struct node *) 0 ;
1668
 
  struct nodeType *arg2 = (struct nodeType *) 0 ;
1669
 
  
1670
 
  SWIG_check_num_args("type",2,2)
1671
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("type",1,"struct node *");
1672
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("type",2,"struct nodeType *");
1673
 
  
1674
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1675
 
    SWIG_fail_ptr("node_type_set",1,SWIGTYPE_p_node);
1676
 
  }
1677
 
  
1678
 
  
1679
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_nodeType,SWIG_POINTER_DISOWN))){
1680
 
    SWIG_fail_ptr("node_type_set",2,SWIGTYPE_p_nodeType);
1681
 
  }
1682
 
  
1683
 
  if (arg1) (arg1)->type = arg2;
1684
 
  
1685
 
  return SWIG_arg;
1686
 
  
1687
 
  if(0) SWIG_fail;
1688
 
  
1689
 
fail:
1690
 
  lua_error(L);
1691
 
  return SWIG_arg;
1692
 
}
1693
 
 
1694
 
 
1695
 
static int _wrap_node_type_get(lua_State* L) {
1696
 
  int SWIG_arg = 0;
1697
 
  struct node *arg1 = (struct node *) 0 ;
1698
 
  struct nodeType *result = 0 ;
1699
 
  
1700
 
  SWIG_check_num_args("type",1,1)
1701
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("type",1,"struct node *");
1702
 
  
1703
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1704
 
    SWIG_fail_ptr("node_type_get",1,SWIGTYPE_p_node);
1705
 
  }
1706
 
  
1707
 
  result = (struct nodeType *) ((arg1)->type);
1708
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_nodeType,0); SWIG_arg++; 
1709
 
  return SWIG_arg;
1710
 
  
1711
 
  if(0) SWIG_fail;
1712
 
  
1713
 
fail:
1714
 
  lua_error(L);
1715
 
  return SWIG_arg;
1716
 
}
1717
 
 
1718
 
 
1719
 
static int _wrap_node_source_set(lua_State* L) {
1720
 
  int SWIG_arg = 0;
1721
 
  struct node *arg1 = (struct node *) 0 ;
1722
 
  struct nodeSource *arg2 = (struct nodeSource *) 0 ;
1723
 
  
1724
 
  SWIG_check_num_args("source",2,2)
1725
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct node *");
1726
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("source",2,"struct nodeSource *");
1727
 
  
1728
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1729
 
    SWIG_fail_ptr("node_source_set",1,SWIGTYPE_p_node);
1730
 
  }
1731
 
  
1732
 
  
1733
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_nodeSource,SWIG_POINTER_DISOWN))){
1734
 
    SWIG_fail_ptr("node_source_set",2,SWIGTYPE_p_nodeSource);
1735
 
  }
1736
 
  
1737
 
  if (arg1) (arg1)->source = arg2;
1738
 
  
1739
 
  return SWIG_arg;
1740
 
  
1741
 
  if(0) SWIG_fail;
1742
 
  
1743
 
fail:
1744
 
  lua_error(L);
1745
 
  return SWIG_arg;
1746
 
}
1747
 
 
1748
 
 
1749
 
static int _wrap_node_source_get(lua_State* L) {
1750
 
  int SWIG_arg = 0;
1751
 
  struct node *arg1 = (struct node *) 0 ;
1752
 
  struct nodeSource *result = 0 ;
1753
 
  
1754
 
  SWIG_check_num_args("source",1,1)
1755
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct node *");
1756
 
  
1757
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1758
 
    SWIG_fail_ptr("node_source_get",1,SWIGTYPE_p_node);
1759
 
  }
1760
 
  
1761
 
  result = (struct nodeSource *) ((arg1)->source);
1762
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_nodeSource,0); SWIG_arg++; 
1763
 
  return SWIG_arg;
1764
 
  
1765
 
  if(0) SWIG_fail;
1766
 
  
1767
 
fail:
1768
 
  lua_error(L);
1769
 
  return SWIG_arg;
1770
 
}
1771
 
 
1772
 
 
1773
 
static int _wrap_node_iconFile_set(lua_State* L) {
1774
 
  int SWIG_arg = 0;
1775
 
  struct node *arg1 = (struct node *) 0 ;
1776
 
  char *arg2 = (char *) 0 ;
1777
 
  
1778
 
  SWIG_check_num_args("iconFile",2,2)
1779
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("iconFile",1,"struct node *");
1780
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("iconFile",2,"char *");
1781
 
  
1782
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1783
 
    SWIG_fail_ptr("node_iconFile_set",1,SWIGTYPE_p_node);
1784
 
  }
1785
 
  
1786
 
  arg2 = (char *)lua_tostring(L, 2);
1787
 
  {
1788
 
    if (arg1->iconFile) free((char *)arg1->iconFile);
1789
 
    if (arg2) {
1790
 
      arg1->iconFile = (char *) malloc(strlen((const char *)arg2)+1);
1791
 
      strcpy((char *)arg1->iconFile, (const char *)arg2);
1792
 
    } else {
1793
 
      arg1->iconFile = 0;
1794
 
    }
1795
 
  }
1796
 
  
1797
 
  return SWIG_arg;
1798
 
  
1799
 
  if(0) SWIG_fail;
1800
 
  
1801
 
fail:
1802
 
  lua_error(L);
1803
 
  return SWIG_arg;
1804
 
}
1805
 
 
1806
 
 
1807
 
static int _wrap_node_iconFile_get(lua_State* L) {
1808
 
  int SWIG_arg = 0;
1809
 
  struct node *arg1 = (struct node *) 0 ;
1810
 
  char *result = 0 ;
1811
 
  
1812
 
  SWIG_check_num_args("iconFile",1,1)
1813
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("iconFile",1,"struct node *");
1814
 
  
1815
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1816
 
    SWIG_fail_ptr("node_iconFile_get",1,SWIGTYPE_p_node);
1817
 
  }
1818
 
  
1819
 
  result = (char *) ((arg1)->iconFile);
1820
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
1821
 
  return SWIG_arg;
1822
 
  
1823
 
  if(0) SWIG_fail;
1824
 
  
1825
 
fail:
1826
 
  lua_error(L);
1827
 
  return SWIG_arg;
1828
 
}
1829
 
 
1830
 
 
1831
 
static int _wrap_node_parent_set(lua_State* L) {
1832
 
  int SWIG_arg = 0;
1833
 
  struct node *arg1 = (struct node *) 0 ;
1834
 
  struct node *arg2 = (struct node *) 0 ;
1835
 
  
1836
 
  SWIG_check_num_args("parent",2,2)
1837
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parent",1,"struct node *");
1838
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("parent",2,"struct node *");
1839
 
  
1840
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1841
 
    SWIG_fail_ptr("node_parent_set",1,SWIGTYPE_p_node);
1842
 
  }
1843
 
  
1844
 
  
1845
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_node,SWIG_POINTER_DISOWN))){
1846
 
    SWIG_fail_ptr("node_parent_set",2,SWIGTYPE_p_node);
1847
 
  }
1848
 
  
1849
 
  if (arg1) (arg1)->parent = arg2;
1850
 
  
1851
 
  return SWIG_arg;
1852
 
  
1853
 
  if(0) SWIG_fail;
1854
 
  
1855
 
fail:
1856
 
  lua_error(L);
1857
 
  return SWIG_arg;
1858
 
}
1859
 
 
1860
 
 
1861
 
static int _wrap_node_parent_get(lua_State* L) {
1862
 
  int SWIG_arg = 0;
1863
 
  struct node *arg1 = (struct node *) 0 ;
1864
 
  struct node *result = 0 ;
1865
 
  
1866
 
  SWIG_check_num_args("parent",1,1)
1867
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parent",1,"struct node *");
1868
 
  
1869
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1870
 
    SWIG_fail_ptr("node_parent_get",1,SWIGTYPE_p_node);
1871
 
  }
1872
 
  
1873
 
  result = (struct node *) ((arg1)->parent);
1874
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,0); SWIG_arg++; 
1875
 
  return SWIG_arg;
1876
 
  
1877
 
  if(0) SWIG_fail;
1878
 
  
1879
 
fail:
1880
 
  lua_error(L);
1881
 
  return SWIG_arg;
1882
 
}
1883
 
 
1884
 
 
1885
 
static int _wrap_node_children_set(lua_State* L) {
1886
 
  int SWIG_arg = 0;
1887
 
  struct node *arg1 = (struct node *) 0 ;
1888
 
  GSList *arg2 = (GSList *) 0 ;
1889
 
  
1890
 
  SWIG_check_num_args("children",2,2)
1891
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("children",1,"struct node *");
1892
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("children",2,"GSList *");
1893
 
  
1894
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1895
 
    SWIG_fail_ptr("node_children_set",1,SWIGTYPE_p_node);
1896
 
  }
1897
 
  
1898
 
  
1899
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GSList,SWIG_POINTER_DISOWN))){
1900
 
    SWIG_fail_ptr("node_children_set",2,SWIGTYPE_p_GSList);
1901
 
  }
1902
 
  
1903
 
  if (arg1) (arg1)->children = arg2;
1904
 
  
1905
 
  return SWIG_arg;
1906
 
  
1907
 
  if(0) SWIG_fail;
1908
 
  
1909
 
fail:
1910
 
  lua_error(L);
1911
 
  return SWIG_arg;
1912
 
}
1913
 
 
1914
 
 
1915
 
static int _wrap_node_children_get(lua_State* L) {
1916
 
  int SWIG_arg = 0;
1917
 
  struct node *arg1 = (struct node *) 0 ;
1918
 
  GSList *result = 0 ;
1919
 
  
1920
 
  SWIG_check_num_args("children",1,1)
1921
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("children",1,"struct node *");
1922
 
  
1923
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1924
 
    SWIG_fail_ptr("node_children_get",1,SWIGTYPE_p_node);
1925
 
  }
1926
 
  
1927
 
  result = (GSList *) ((arg1)->children);
1928
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GSList,0); SWIG_arg++; 
1929
 
  return SWIG_arg;
1930
 
  
1931
 
  if(0) SWIG_fail;
1932
 
  
1933
 
fail:
1934
 
  lua_error(L);
1935
 
  return SWIG_arg;
1936
 
}
1937
 
 
1938
 
 
1939
 
static int _wrap_node_id_set(lua_State* L) {
1940
 
  int SWIG_arg = 0;
1941
 
  struct node *arg1 = (struct node *) 0 ;
1942
 
  char *arg2 = (char *) 0 ;
1943
 
  
1944
 
  SWIG_check_num_args("id",2,2)
1945
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("id",1,"struct node *");
1946
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("id",2,"char *");
1947
 
  
1948
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1949
 
    SWIG_fail_ptr("node_id_set",1,SWIGTYPE_p_node);
1950
 
  }
1951
 
  
1952
 
  arg2 = (char *)lua_tostring(L, 2);
1953
 
  {
1954
 
    if (arg1->id) free((char *)arg1->id);
1955
 
    if (arg2) {
1956
 
      arg1->id = (char *) malloc(strlen((const char *)arg2)+1);
1957
 
      strcpy((char *)arg1->id, (const char *)arg2);
1958
 
    } else {
1959
 
      arg1->id = 0;
1960
 
    }
1961
 
  }
1962
 
  
1963
 
  return SWIG_arg;
1964
 
  
1965
 
  if(0) SWIG_fail;
1966
 
  
1967
 
fail:
1968
 
  lua_error(L);
1969
 
  return SWIG_arg;
1970
 
}
1971
 
 
1972
 
 
1973
 
static int _wrap_node_id_get(lua_State* L) {
1974
 
  int SWIG_arg = 0;
1975
 
  struct node *arg1 = (struct node *) 0 ;
1976
 
  char *result = 0 ;
1977
 
  
1978
 
  SWIG_check_num_args("id",1,1)
1979
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("id",1,"struct node *");
1980
 
  
1981
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
1982
 
    SWIG_fail_ptr("node_id_get",1,SWIGTYPE_p_node);
1983
 
  }
1984
 
  
1985
 
  result = (char *) ((arg1)->id);
1986
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
1987
 
  return SWIG_arg;
1988
 
  
1989
 
  if(0) SWIG_fail;
1990
 
  
1991
 
fail:
1992
 
  lua_error(L);
1993
 
  return SWIG_arg;
1994
 
}
1995
 
 
1996
 
 
1997
 
static int _wrap_node_itemCount_set(lua_State* L) {
1998
 
  int SWIG_arg = 0;
1999
 
  struct node *arg1 = (struct node *) 0 ;
2000
 
  unsigned int arg2 ;
2001
 
  
2002
 
  SWIG_check_num_args("itemCount",2,2)
2003
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemCount",1,"struct node *");
2004
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("itemCount",2,"unsigned int");
2005
 
  
2006
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2007
 
    SWIG_fail_ptr("node_itemCount_set",1,SWIGTYPE_p_node);
2008
 
  }
2009
 
  
2010
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
2011
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
2012
 
  if (arg1) (arg1)->itemCount = arg2;
2013
 
  
2014
 
  return SWIG_arg;
2015
 
  
2016
 
  if(0) SWIG_fail;
2017
 
  
2018
 
fail:
2019
 
  lua_error(L);
2020
 
  return SWIG_arg;
2021
 
}
2022
 
 
2023
 
 
2024
 
static int _wrap_node_itemCount_get(lua_State* L) {
2025
 
  int SWIG_arg = 0;
2026
 
  struct node *arg1 = (struct node *) 0 ;
2027
 
  unsigned int result;
2028
 
  
2029
 
  SWIG_check_num_args("itemCount",1,1)
2030
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemCount",1,"struct node *");
2031
 
  
2032
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2033
 
    SWIG_fail_ptr("node_itemCount_get",1,SWIGTYPE_p_node);
2034
 
  }
2035
 
  
2036
 
  result = (unsigned int) ((arg1)->itemCount);
2037
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2038
 
  return SWIG_arg;
2039
 
  
2040
 
  if(0) SWIG_fail;
2041
 
  
2042
 
fail:
2043
 
  lua_error(L);
2044
 
  return SWIG_arg;
2045
 
}
2046
 
 
2047
 
 
2048
 
static int _wrap_node_unreadCount_set(lua_State* L) {
2049
 
  int SWIG_arg = 0;
2050
 
  struct node *arg1 = (struct node *) 0 ;
2051
 
  unsigned int arg2 ;
2052
 
  
2053
 
  SWIG_check_num_args("unreadCount",2,2)
2054
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unreadCount",1,"struct node *");
2055
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("unreadCount",2,"unsigned int");
2056
 
  
2057
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2058
 
    SWIG_fail_ptr("node_unreadCount_set",1,SWIGTYPE_p_node);
2059
 
  }
2060
 
  
2061
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
2062
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
2063
 
  if (arg1) (arg1)->unreadCount = arg2;
2064
 
  
2065
 
  return SWIG_arg;
2066
 
  
2067
 
  if(0) SWIG_fail;
2068
 
  
2069
 
fail:
2070
 
  lua_error(L);
2071
 
  return SWIG_arg;
2072
 
}
2073
 
 
2074
 
 
2075
 
static int _wrap_node_unreadCount_get(lua_State* L) {
2076
 
  int SWIG_arg = 0;
2077
 
  struct node *arg1 = (struct node *) 0 ;
2078
 
  unsigned int result;
2079
 
  
2080
 
  SWIG_check_num_args("unreadCount",1,1)
2081
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unreadCount",1,"struct node *");
2082
 
  
2083
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2084
 
    SWIG_fail_ptr("node_unreadCount_get",1,SWIGTYPE_p_node);
2085
 
  }
2086
 
  
2087
 
  result = (unsigned int) ((arg1)->unreadCount);
2088
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2089
 
  return SWIG_arg;
2090
 
  
2091
 
  if(0) SWIG_fail;
2092
 
  
2093
 
fail:
2094
 
  lua_error(L);
2095
 
  return SWIG_arg;
2096
 
}
2097
 
 
2098
 
 
2099
 
static int _wrap_node_popupCount_set(lua_State* L) {
2100
 
  int SWIG_arg = 0;
2101
 
  struct node *arg1 = (struct node *) 0 ;
2102
 
  unsigned int arg2 ;
2103
 
  
2104
 
  SWIG_check_num_args("popupCount",2,2)
2105
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("popupCount",1,"struct node *");
2106
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("popupCount",2,"unsigned int");
2107
 
  
2108
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2109
 
    SWIG_fail_ptr("node_popupCount_set",1,SWIGTYPE_p_node);
2110
 
  }
2111
 
  
2112
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
2113
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
2114
 
  if (arg1) (arg1)->popupCount = arg2;
2115
 
  
2116
 
  return SWIG_arg;
2117
 
  
2118
 
  if(0) SWIG_fail;
2119
 
  
2120
 
fail:
2121
 
  lua_error(L);
2122
 
  return SWIG_arg;
2123
 
}
2124
 
 
2125
 
 
2126
 
static int _wrap_node_popupCount_get(lua_State* L) {
2127
 
  int SWIG_arg = 0;
2128
 
  struct node *arg1 = (struct node *) 0 ;
2129
 
  unsigned int result;
2130
 
  
2131
 
  SWIG_check_num_args("popupCount",1,1)
2132
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("popupCount",1,"struct node *");
2133
 
  
2134
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2135
 
    SWIG_fail_ptr("node_popupCount_get",1,SWIGTYPE_p_node);
2136
 
  }
2137
 
  
2138
 
  result = (unsigned int) ((arg1)->popupCount);
2139
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2140
 
  return SWIG_arg;
2141
 
  
2142
 
  if(0) SWIG_fail;
2143
 
  
2144
 
fail:
2145
 
  lua_error(L);
2146
 
  return SWIG_arg;
2147
 
}
2148
 
 
2149
 
 
2150
 
static int _wrap_node_newCount_set(lua_State* L) {
2151
 
  int SWIG_arg = 0;
2152
 
  struct node *arg1 = (struct node *) 0 ;
2153
 
  unsigned int arg2 ;
2154
 
  
2155
 
  SWIG_check_num_args("newCount",2,2)
2156
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("newCount",1,"struct node *");
2157
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("newCount",2,"unsigned int");
2158
 
  
2159
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2160
 
    SWIG_fail_ptr("node_newCount_set",1,SWIGTYPE_p_node);
2161
 
  }
2162
 
  
2163
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
2164
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
2165
 
  if (arg1) (arg1)->newCount = arg2;
2166
 
  
2167
 
  return SWIG_arg;
2168
 
  
2169
 
  if(0) SWIG_fail;
2170
 
  
2171
 
fail:
2172
 
  lua_error(L);
2173
 
  return SWIG_arg;
2174
 
}
2175
 
 
2176
 
 
2177
 
static int _wrap_node_newCount_get(lua_State* L) {
2178
 
  int SWIG_arg = 0;
2179
 
  struct node *arg1 = (struct node *) 0 ;
2180
 
  unsigned int result;
2181
 
  
2182
 
  SWIG_check_num_args("newCount",1,1)
2183
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("newCount",1,"struct node *");
2184
 
  
2185
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2186
 
    SWIG_fail_ptr("node_newCount_get",1,SWIGTYPE_p_node);
2187
 
  }
2188
 
  
2189
 
  result = (unsigned int) ((arg1)->newCount);
2190
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2191
 
  return SWIG_arg;
2192
 
  
2193
 
  if(0) SWIG_fail;
2194
 
  
2195
 
fail:
2196
 
  lua_error(L);
2197
 
  return SWIG_arg;
2198
 
}
2199
 
 
2200
 
 
2201
 
static int _wrap_node_title_set(lua_State* L) {
2202
 
  int SWIG_arg = 0;
2203
 
  struct node *arg1 = (struct node *) 0 ;
2204
 
  char *arg2 = (char *) 0 ;
2205
 
  
2206
 
  SWIG_check_num_args("title",2,2)
2207
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct node *");
2208
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("title",2,"char *");
2209
 
  
2210
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2211
 
    SWIG_fail_ptr("node_title_set",1,SWIGTYPE_p_node);
2212
 
  }
2213
 
  
2214
 
  arg2 = (char *)lua_tostring(L, 2);
2215
 
  {
2216
 
    if (arg1->title) free((char *)arg1->title);
2217
 
    if (arg2) {
2218
 
      arg1->title = (char *) malloc(strlen((const char *)arg2)+1);
2219
 
      strcpy((char *)arg1->title, (const char *)arg2);
2220
 
    } else {
2221
 
      arg1->title = 0;
2222
 
    }
2223
 
  }
2224
 
  
2225
 
  return SWIG_arg;
2226
 
  
2227
 
  if(0) SWIG_fail;
2228
 
  
2229
 
fail:
2230
 
  lua_error(L);
2231
 
  return SWIG_arg;
2232
 
}
2233
 
 
2234
 
 
2235
 
static int _wrap_node_title_get(lua_State* L) {
2236
 
  int SWIG_arg = 0;
2237
 
  struct node *arg1 = (struct node *) 0 ;
2238
 
  char *result = 0 ;
2239
 
  
2240
 
  SWIG_check_num_args("title",1,1)
2241
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct node *");
2242
 
  
2243
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2244
 
    SWIG_fail_ptr("node_title_get",1,SWIGTYPE_p_node);
2245
 
  }
2246
 
  
2247
 
  result = (char *) ((arg1)->title);
2248
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
2249
 
  return SWIG_arg;
2250
 
  
2251
 
  if(0) SWIG_fail;
2252
 
  
2253
 
fail:
2254
 
  lua_error(L);
2255
 
  return SWIG_arg;
2256
 
}
2257
 
 
2258
 
 
2259
 
static int _wrap_node_icon_set(lua_State* L) {
2260
 
  int SWIG_arg = 0;
2261
 
  struct node *arg1 = (struct node *) 0 ;
2262
 
  gpointer arg2 ;
2263
 
  gpointer *argp2 ;
2264
 
  
2265
 
  SWIG_check_num_args("icon",2,2)
2266
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("icon",1,"struct node *");
2267
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("icon",2,"gpointer");
2268
 
  
2269
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2270
 
    SWIG_fail_ptr("node_icon_set",1,SWIGTYPE_p_node);
2271
 
  }
2272
 
  
2273
 
  
2274
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
2275
 
    SWIG_fail_ptr("node_icon_set",2,SWIGTYPE_p_gpointer);
2276
 
  }
2277
 
  arg2 = *argp2;
2278
 
  
2279
 
  if (arg1) (arg1)->icon = arg2;
2280
 
  
2281
 
  return SWIG_arg;
2282
 
  
2283
 
  if(0) SWIG_fail;
2284
 
  
2285
 
fail:
2286
 
  lua_error(L);
2287
 
  return SWIG_arg;
2288
 
}
2289
 
 
2290
 
 
2291
 
static int _wrap_node_icon_get(lua_State* L) {
2292
 
  int SWIG_arg = 0;
2293
 
  struct node *arg1 = (struct node *) 0 ;
2294
 
  gpointer result;
2295
 
  
2296
 
  SWIG_check_num_args("icon",1,1)
2297
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("icon",1,"struct node *");
2298
 
  
2299
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2300
 
    SWIG_fail_ptr("node_icon_get",1,SWIGTYPE_p_node);
2301
 
  }
2302
 
  
2303
 
  result =  ((arg1)->icon);
2304
 
  {
2305
 
    gpointer * resultptr;
2306
 
    resultptr = (gpointer *) malloc(sizeof(gpointer));
2307
 
    memmove(resultptr, &result, sizeof(gpointer));
2308
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gpointer,1); SWIG_arg++;
2309
 
  }
2310
 
  return SWIG_arg;
2311
 
  
2312
 
  if(0) SWIG_fail;
2313
 
  
2314
 
fail:
2315
 
  lua_error(L);
2316
 
  return SWIG_arg;
2317
 
}
2318
 
 
2319
 
 
2320
 
static int _wrap_node_available_set(lua_State* L) {
2321
 
  int SWIG_arg = 0;
2322
 
  struct node *arg1 = (struct node *) 0 ;
2323
 
  int arg2 ;
2324
 
  
2325
 
  SWIG_check_num_args("available",2,2)
2326
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("available",1,"struct node *");
2327
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("available",2,"int");
2328
 
  
2329
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2330
 
    SWIG_fail_ptr("node_available_set",1,SWIGTYPE_p_node);
2331
 
  }
2332
 
  
2333
 
  arg2 = (int)lua_tonumber(L, 2);
2334
 
  if (arg1) (arg1)->available = arg2;
2335
 
  
2336
 
  return SWIG_arg;
2337
 
  
2338
 
  if(0) SWIG_fail;
2339
 
  
2340
 
fail:
2341
 
  lua_error(L);
2342
 
  return SWIG_arg;
2343
 
}
2344
 
 
2345
 
 
2346
 
static int _wrap_node_available_get(lua_State* L) {
2347
 
  int SWIG_arg = 0;
2348
 
  struct node *arg1 = (struct node *) 0 ;
2349
 
  int result;
2350
 
  
2351
 
  SWIG_check_num_args("available",1,1)
2352
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("available",1,"struct node *");
2353
 
  
2354
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2355
 
    SWIG_fail_ptr("node_available_get",1,SWIGTYPE_p_node);
2356
 
  }
2357
 
  
2358
 
  result = (int) ((arg1)->available);
2359
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2360
 
  return SWIG_arg;
2361
 
  
2362
 
  if(0) SWIG_fail;
2363
 
  
2364
 
fail:
2365
 
  lua_error(L);
2366
 
  return SWIG_arg;
2367
 
}
2368
 
 
2369
 
 
2370
 
static int _wrap_node_expanded_set(lua_State* L) {
2371
 
  int SWIG_arg = 0;
2372
 
  struct node *arg1 = (struct node *) 0 ;
2373
 
  int arg2 ;
2374
 
  
2375
 
  SWIG_check_num_args("expanded",2,2)
2376
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("expanded",1,"struct node *");
2377
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("expanded",2,"int");
2378
 
  
2379
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2380
 
    SWIG_fail_ptr("node_expanded_set",1,SWIGTYPE_p_node);
2381
 
  }
2382
 
  
2383
 
  arg2 = (int)lua_tonumber(L, 2);
2384
 
  if (arg1) (arg1)->expanded = arg2;
2385
 
  
2386
 
  return SWIG_arg;
2387
 
  
2388
 
  if(0) SWIG_fail;
2389
 
  
2390
 
fail:
2391
 
  lua_error(L);
2392
 
  return SWIG_arg;
2393
 
}
2394
 
 
2395
 
 
2396
 
static int _wrap_node_expanded_get(lua_State* L) {
2397
 
  int SWIG_arg = 0;
2398
 
  struct node *arg1 = (struct node *) 0 ;
2399
 
  int result;
2400
 
  
2401
 
  SWIG_check_num_args("expanded",1,1)
2402
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("expanded",1,"struct node *");
2403
 
  
2404
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2405
 
    SWIG_fail_ptr("node_expanded_get",1,SWIGTYPE_p_node);
2406
 
  }
2407
 
  
2408
 
  result = (int) ((arg1)->expanded);
2409
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2410
 
  return SWIG_arg;
2411
 
  
2412
 
  if(0) SWIG_fail;
2413
 
  
2414
 
fail:
2415
 
  lua_error(L);
2416
 
  return SWIG_arg;
2417
 
}
2418
 
 
2419
 
 
2420
 
static int _wrap_node_viewMode_set(lua_State* L) {
2421
 
  int SWIG_arg = 0;
2422
 
  struct node *arg1 = (struct node *) 0 ;
2423
 
  nodeViewType arg2 ;
2424
 
  nodeViewType *argp2 ;
2425
 
  
2426
 
  SWIG_check_num_args("viewMode",2,2)
2427
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("viewMode",1,"struct node *");
2428
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("viewMode",2,"nodeViewType");
2429
 
  
2430
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2431
 
    SWIG_fail_ptr("node_viewMode_set",1,SWIGTYPE_p_node);
2432
 
  }
2433
 
  
2434
 
  
2435
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_nodeViewType,0))){
2436
 
    SWIG_fail_ptr("node_viewMode_set",2,SWIGTYPE_p_nodeViewType);
2437
 
  }
2438
 
  arg2 = *argp2;
2439
 
  
2440
 
  if (arg1) (arg1)->viewMode = arg2;
2441
 
  
2442
 
  return SWIG_arg;
2443
 
  
2444
 
  if(0) SWIG_fail;
2445
 
  
2446
 
fail:
2447
 
  lua_error(L);
2448
 
  return SWIG_arg;
2449
 
}
2450
 
 
2451
 
 
2452
 
static int _wrap_node_viewMode_get(lua_State* L) {
2453
 
  int SWIG_arg = 0;
2454
 
  struct node *arg1 = (struct node *) 0 ;
2455
 
  nodeViewType result;
2456
 
  
2457
 
  SWIG_check_num_args("viewMode",1,1)
2458
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("viewMode",1,"struct node *");
2459
 
  
2460
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2461
 
    SWIG_fail_ptr("node_viewMode_get",1,SWIGTYPE_p_node);
2462
 
  }
2463
 
  
2464
 
  result =  ((arg1)->viewMode);
2465
 
  {
2466
 
    nodeViewType * resultptr;
2467
 
    resultptr = (nodeViewType *) malloc(sizeof(nodeViewType));
2468
 
    memmove(resultptr, &result, sizeof(nodeViewType));
2469
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_nodeViewType,1); SWIG_arg++;
2470
 
  }
2471
 
  return SWIG_arg;
2472
 
  
2473
 
  if(0) SWIG_fail;
2474
 
  
2475
 
fail:
2476
 
  lua_error(L);
2477
 
  return SWIG_arg;
2478
 
}
2479
 
 
2480
 
 
2481
 
static int _wrap_node_sortColumn_set(lua_State* L) {
2482
 
  int SWIG_arg = 0;
2483
 
  struct node *arg1 = (struct node *) 0 ;
2484
 
  nodeViewSortType arg2 ;
2485
 
  nodeViewSortType *argp2 ;
2486
 
  
2487
 
  SWIG_check_num_args("sortColumn",2,2)
2488
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sortColumn",1,"struct node *");
2489
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("sortColumn",2,"nodeViewSortType");
2490
 
  
2491
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2492
 
    SWIG_fail_ptr("node_sortColumn_set",1,SWIGTYPE_p_node);
2493
 
  }
2494
 
  
2495
 
  
2496
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_nodeViewSortType,0))){
2497
 
    SWIG_fail_ptr("node_sortColumn_set",2,SWIGTYPE_p_nodeViewSortType);
2498
 
  }
2499
 
  arg2 = *argp2;
2500
 
  
2501
 
  if (arg1) (arg1)->sortColumn = arg2;
2502
 
  
2503
 
  return SWIG_arg;
2504
 
  
2505
 
  if(0) SWIG_fail;
2506
 
  
2507
 
fail:
2508
 
  lua_error(L);
2509
 
  return SWIG_arg;
2510
 
}
2511
 
 
2512
 
 
2513
 
static int _wrap_node_sortColumn_get(lua_State* L) {
2514
 
  int SWIG_arg = 0;
2515
 
  struct node *arg1 = (struct node *) 0 ;
2516
 
  nodeViewSortType result;
2517
 
  
2518
 
  SWIG_check_num_args("sortColumn",1,1)
2519
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sortColumn",1,"struct node *");
2520
 
  
2521
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2522
 
    SWIG_fail_ptr("node_sortColumn_get",1,SWIGTYPE_p_node);
2523
 
  }
2524
 
  
2525
 
  result =  ((arg1)->sortColumn);
2526
 
  {
2527
 
    nodeViewSortType * resultptr;
2528
 
    resultptr = (nodeViewSortType *) malloc(sizeof(nodeViewSortType));
2529
 
    memmove(resultptr, &result, sizeof(nodeViewSortType));
2530
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_nodeViewSortType,1); SWIG_arg++;
2531
 
  }
2532
 
  return SWIG_arg;
2533
 
  
2534
 
  if(0) SWIG_fail;
2535
 
  
2536
 
fail:
2537
 
  lua_error(L);
2538
 
  return SWIG_arg;
2539
 
}
2540
 
 
2541
 
 
2542
 
static int _wrap_node_sortReversed_set(lua_State* L) {
2543
 
  int SWIG_arg = 0;
2544
 
  struct node *arg1 = (struct node *) 0 ;
2545
 
  int arg2 ;
2546
 
  
2547
 
  SWIG_check_num_args("sortReversed",2,2)
2548
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sortReversed",1,"struct node *");
2549
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("sortReversed",2,"int");
2550
 
  
2551
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2552
 
    SWIG_fail_ptr("node_sortReversed_set",1,SWIGTYPE_p_node);
2553
 
  }
2554
 
  
2555
 
  arg2 = (int)lua_tonumber(L, 2);
2556
 
  if (arg1) (arg1)->sortReversed = arg2;
2557
 
  
2558
 
  return SWIG_arg;
2559
 
  
2560
 
  if(0) SWIG_fail;
2561
 
  
2562
 
fail:
2563
 
  lua_error(L);
2564
 
  return SWIG_arg;
2565
 
}
2566
 
 
2567
 
 
2568
 
static int _wrap_node_sortReversed_get(lua_State* L) {
2569
 
  int SWIG_arg = 0;
2570
 
  struct node *arg1 = (struct node *) 0 ;
2571
 
  int result;
2572
 
  
2573
 
  SWIG_check_num_args("sortReversed",1,1)
2574
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sortReversed",1,"struct node *");
2575
 
  
2576
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2577
 
    SWIG_fail_ptr("node_sortReversed_get",1,SWIGTYPE_p_node);
2578
 
  }
2579
 
  
2580
 
  result = (int) ((arg1)->sortReversed);
2581
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2582
 
  return SWIG_arg;
2583
 
  
2584
 
  if(0) SWIG_fail;
2585
 
  
2586
 
fail:
2587
 
  lua_error(L);
2588
 
  return SWIG_arg;
2589
 
}
2590
 
 
2591
 
 
2592
 
static int _wrap_node_needsUpdate_set(lua_State* L) {
2593
 
  int SWIG_arg = 0;
2594
 
  struct node *arg1 = (struct node *) 0 ;
2595
 
  int arg2 ;
2596
 
  
2597
 
  SWIG_check_num_args("needsUpdate",2,2)
2598
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("needsUpdate",1,"struct node *");
2599
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("needsUpdate",2,"int");
2600
 
  
2601
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2602
 
    SWIG_fail_ptr("node_needsUpdate_set",1,SWIGTYPE_p_node);
2603
 
  }
2604
 
  
2605
 
  arg2 = (int)lua_tonumber(L, 2);
2606
 
  if (arg1) (arg1)->needsUpdate = arg2;
2607
 
  
2608
 
  return SWIG_arg;
2609
 
  
2610
 
  if(0) SWIG_fail;
2611
 
  
2612
 
fail:
2613
 
  lua_error(L);
2614
 
  return SWIG_arg;
2615
 
}
2616
 
 
2617
 
 
2618
 
static int _wrap_node_needsUpdate_get(lua_State* L) {
2619
 
  int SWIG_arg = 0;
2620
 
  struct node *arg1 = (struct node *) 0 ;
2621
 
  int result;
2622
 
  
2623
 
  SWIG_check_num_args("needsUpdate",1,1)
2624
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("needsUpdate",1,"struct node *");
2625
 
  
2626
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2627
 
    SWIG_fail_ptr("node_needsUpdate_get",1,SWIGTYPE_p_node);
2628
 
  }
2629
 
  
2630
 
  result = (int) ((arg1)->needsUpdate);
2631
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2632
 
  return SWIG_arg;
2633
 
  
2634
 
  if(0) SWIG_fail;
2635
 
  
2636
 
fail:
2637
 
  lua_error(L);
2638
 
  return SWIG_arg;
2639
 
}
2640
 
 
2641
 
 
2642
 
static int _wrap_node_needsRecount_set(lua_State* L) {
2643
 
  int SWIG_arg = 0;
2644
 
  struct node *arg1 = (struct node *) 0 ;
2645
 
  int arg2 ;
2646
 
  
2647
 
  SWIG_check_num_args("needsRecount",2,2)
2648
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("needsRecount",1,"struct node *");
2649
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("needsRecount",2,"int");
2650
 
  
2651
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2652
 
    SWIG_fail_ptr("node_needsRecount_set",1,SWIGTYPE_p_node);
2653
 
  }
2654
 
  
2655
 
  arg2 = (int)lua_tonumber(L, 2);
2656
 
  if (arg1) (arg1)->needsRecount = arg2;
2657
 
  
2658
 
  return SWIG_arg;
2659
 
  
2660
 
  if(0) SWIG_fail;
2661
 
  
2662
 
fail:
2663
 
  lua_error(L);
2664
 
  return SWIG_arg;
2665
 
}
2666
 
 
2667
 
 
2668
 
static int _wrap_node_needsRecount_get(lua_State* L) {
2669
 
  int SWIG_arg = 0;
2670
 
  struct node *arg1 = (struct node *) 0 ;
2671
 
  int result;
2672
 
  
2673
 
  SWIG_check_num_args("needsRecount",1,1)
2674
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("needsRecount",1,"struct node *");
2675
 
  
2676
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2677
 
    SWIG_fail_ptr("node_needsRecount_get",1,SWIGTYPE_p_node);
2678
 
  }
2679
 
  
2680
 
  result = (int) ((arg1)->needsRecount);
2681
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
2682
 
  return SWIG_arg;
2683
 
  
2684
 
  if(0) SWIG_fail;
2685
 
  
2686
 
fail:
2687
 
  lua_error(L);
2688
 
  return SWIG_arg;
2689
 
}
2690
 
 
2691
 
 
2692
 
static int _wrap_new_node(lua_State* L) {
2693
 
  int SWIG_arg = 0;
2694
 
  struct node *result = 0 ;
2695
 
  
2696
 
  SWIG_check_num_args("node::node",0,0)
2697
 
  result = (struct node *)calloc(1, sizeof(struct node));
2698
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,1); SWIG_arg++; 
2699
 
  return SWIG_arg;
2700
 
  
2701
 
  if(0) SWIG_fail;
2702
 
  
2703
 
fail:
2704
 
  lua_error(L);
2705
 
  return SWIG_arg;
2706
 
}
2707
 
 
2708
 
 
2709
 
static void swig_delete_node(void *obj) {
2710
 
struct node *arg1 = (struct node *) obj;
2711
 
free((char *) arg1);
2712
 
}
2713
 
static swig_lua_method swig_node_methods[] = {
2714
 
    {0,0}
2715
 
};
2716
 
static swig_lua_attribute swig_node_attributes[] = {
2717
 
    { "data", _wrap_node_data_get, _wrap_node_data_set},
2718
 
    { "subscription", _wrap_node_subscription_get, _wrap_node_subscription_set},
2719
 
    { "type", _wrap_node_type_get, _wrap_node_type_set},
2720
 
    { "source", _wrap_node_source_get, _wrap_node_source_set},
2721
 
    { "iconFile", _wrap_node_iconFile_get, _wrap_node_iconFile_set},
2722
 
    { "parent", _wrap_node_parent_get, _wrap_node_parent_set},
2723
 
    { "children", _wrap_node_children_get, _wrap_node_children_set},
2724
 
    { "id", _wrap_node_id_get, _wrap_node_id_set},
2725
 
    { "itemCount", _wrap_node_itemCount_get, _wrap_node_itemCount_set},
2726
 
    { "unreadCount", _wrap_node_unreadCount_get, _wrap_node_unreadCount_set},
2727
 
    { "popupCount", _wrap_node_popupCount_get, _wrap_node_popupCount_set},
2728
 
    { "newCount", _wrap_node_newCount_get, _wrap_node_newCount_set},
2729
 
    { "title", _wrap_node_title_get, _wrap_node_title_set},
2730
 
    { "icon", _wrap_node_icon_get, _wrap_node_icon_set},
2731
 
    { "available", _wrap_node_available_get, _wrap_node_available_set},
2732
 
    { "expanded", _wrap_node_expanded_get, _wrap_node_expanded_set},
2733
 
    { "viewMode", _wrap_node_viewMode_get, _wrap_node_viewMode_set},
2734
 
    { "sortColumn", _wrap_node_sortColumn_get, _wrap_node_sortColumn_set},
2735
 
    { "sortReversed", _wrap_node_sortReversed_get, _wrap_node_sortReversed_set},
2736
 
    { "needsUpdate", _wrap_node_needsUpdate_get, _wrap_node_needsUpdate_set},
2737
 
    { "needsRecount", _wrap_node_needsRecount_get, _wrap_node_needsRecount_set},
2738
 
    {0,0,0}
2739
 
};
2740
 
static swig_lua_class *swig_node_bases[] = {0};
2741
 
static const char *swig_node_base_names[] = {0};
2742
 
static swig_lua_class _wrap_class_node = { "node", &SWIGTYPE_p_node,_wrap_new_node, swig_delete_node, swig_node_methods, swig_node_attributes, swig_node_bases, swig_node_base_names };
2743
 
 
2744
 
static int _wrap_node_new(lua_State* L) {
2745
 
  int SWIG_arg = 0;
2746
 
  struct nodeType *arg1 = (struct nodeType *) 0 ;
2747
 
  nodePtr result;
2748
 
  
2749
 
  SWIG_check_num_args("node_new",1,1)
2750
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_new",1,"struct nodeType *");
2751
 
  
2752
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_nodeType,0))){
2753
 
    SWIG_fail_ptr("node_new",1,SWIGTYPE_p_nodeType);
2754
 
  }
2755
 
  
2756
 
  result = (nodePtr)node_new(arg1);
2757
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,0); SWIG_arg++; 
2758
 
  return SWIG_arg;
2759
 
  
2760
 
  if(0) SWIG_fail;
2761
 
  
2762
 
fail:
2763
 
  lua_error(L);
2764
 
  return SWIG_arg;
2765
 
}
2766
 
 
2767
 
 
2768
 
static int _wrap_node_from_id(lua_State* L) {
2769
 
  int SWIG_arg = 0;
2770
 
  char *arg1 = (char *) 0 ;
2771
 
  nodePtr result;
2772
 
  
2773
 
  SWIG_check_num_args("node_from_id",1,1)
2774
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("node_from_id",1,"char const *");
2775
 
  arg1 = (char *)lua_tostring(L, 1);
2776
 
  result = (nodePtr)node_from_id((char const *)arg1);
2777
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,0); SWIG_arg++; 
2778
 
  return SWIG_arg;
2779
 
  
2780
 
  if(0) SWIG_fail;
2781
 
  
2782
 
fail:
2783
 
  lua_error(L);
2784
 
  return SWIG_arg;
2785
 
}
2786
 
 
2787
 
 
2788
 
static int _wrap_node_set_parent(lua_State* L) {
2789
 
  int SWIG_arg = 0;
2790
 
  nodePtr arg1 = (nodePtr) 0 ;
2791
 
  nodePtr arg2 = (nodePtr) 0 ;
2792
 
  int arg3 ;
2793
 
  
2794
 
  SWIG_check_num_args("node_set_parent",3,3)
2795
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_parent",1,"nodePtr");
2796
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node_set_parent",2,"nodePtr");
2797
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("node_set_parent",3,"int");
2798
 
  
2799
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2800
 
    SWIG_fail_ptr("node_set_parent",1,SWIGTYPE_p_node);
2801
 
  }
2802
 
  
2803
 
  
2804
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_node,0))){
2805
 
    SWIG_fail_ptr("node_set_parent",2,SWIGTYPE_p_node);
2806
 
  }
2807
 
  
2808
 
  arg3 = (int)lua_tonumber(L, 3);
2809
 
  node_set_parent(arg1,arg2,arg3);
2810
 
  
2811
 
  return SWIG_arg;
2812
 
  
2813
 
  if(0) SWIG_fail;
2814
 
  
2815
 
fail:
2816
 
  lua_error(L);
2817
 
  return SWIG_arg;
2818
 
}
2819
 
 
2820
 
 
2821
 
static int _wrap_node_remove(lua_State* L) {
2822
 
  int SWIG_arg = 0;
2823
 
  nodePtr arg1 = (nodePtr) 0 ;
2824
 
  
2825
 
  SWIG_check_num_args("node_remove",1,1)
2826
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_remove",1,"nodePtr");
2827
 
  
2828
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2829
 
    SWIG_fail_ptr("node_remove",1,SWIGTYPE_p_node);
2830
 
  }
2831
 
  
2832
 
  node_remove(arg1);
2833
 
  
2834
 
  return SWIG_arg;
2835
 
  
2836
 
  if(0) SWIG_fail;
2837
 
  
2838
 
fail:
2839
 
  lua_error(L);
2840
 
  return SWIG_arg;
2841
 
}
2842
 
 
2843
 
 
2844
 
static int _wrap_node_set_data(lua_State* L) {
2845
 
  int SWIG_arg = 0;
2846
 
  nodePtr arg1 = (nodePtr) 0 ;
2847
 
  gpointer arg2 ;
2848
 
  gpointer *argp2 ;
2849
 
  
2850
 
  SWIG_check_num_args("node_set_data",2,2)
2851
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_data",1,"nodePtr");
2852
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_set_data",2,"gpointer");
2853
 
  
2854
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2855
 
    SWIG_fail_ptr("node_set_data",1,SWIGTYPE_p_node);
2856
 
  }
2857
 
  
2858
 
  
2859
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
2860
 
    SWIG_fail_ptr("node_set_data",2,SWIGTYPE_p_gpointer);
2861
 
  }
2862
 
  arg2 = *argp2;
2863
 
  
2864
 
  node_set_data(arg1,arg2);
2865
 
  
2866
 
  return SWIG_arg;
2867
 
  
2868
 
  if(0) SWIG_fail;
2869
 
  
2870
 
fail:
2871
 
  lua_error(L);
2872
 
  return SWIG_arg;
2873
 
}
2874
 
 
2875
 
 
2876
 
static int _wrap_node_set_subscription(lua_State* L) {
2877
 
  int SWIG_arg = 0;
2878
 
  nodePtr arg1 = (nodePtr) 0 ;
2879
 
  struct subscription *arg2 = (struct subscription *) 0 ;
2880
 
  
2881
 
  SWIG_check_num_args("node_set_subscription",2,2)
2882
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_subscription",1,"nodePtr");
2883
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node_set_subscription",2,"struct subscription *");
2884
 
  
2885
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2886
 
    SWIG_fail_ptr("node_set_subscription",1,SWIGTYPE_p_node);
2887
 
  }
2888
 
  
2889
 
  
2890
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_subscription,0))){
2891
 
    SWIG_fail_ptr("node_set_subscription",2,SWIGTYPE_p_subscription);
2892
 
  }
2893
 
  
2894
 
  node_set_subscription(arg1,arg2);
2895
 
  
2896
 
  return SWIG_arg;
2897
 
  
2898
 
  if(0) SWIG_fail;
2899
 
  
2900
 
fail:
2901
 
  lua_error(L);
2902
 
  return SWIG_arg;
2903
 
}
2904
 
 
2905
 
 
2906
 
static int _wrap_node_update_subscription(lua_State* L) {
2907
 
  int SWIG_arg = 0;
2908
 
  nodePtr arg1 = (nodePtr) 0 ;
2909
 
  gpointer arg2 ;
2910
 
  gpointer *argp2 ;
2911
 
  
2912
 
  SWIG_check_num_args("node_update_subscription",2,2)
2913
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_update_subscription",1,"nodePtr");
2914
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_update_subscription",2,"gpointer");
2915
 
  
2916
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2917
 
    SWIG_fail_ptr("node_update_subscription",1,SWIGTYPE_p_node);
2918
 
  }
2919
 
  
2920
 
  
2921
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
2922
 
    SWIG_fail_ptr("node_update_subscription",2,SWIGTYPE_p_gpointer);
2923
 
  }
2924
 
  arg2 = *argp2;
2925
 
  
2926
 
  node_update_subscription(arg1,arg2);
2927
 
  
2928
 
  return SWIG_arg;
2929
 
  
2930
 
  if(0) SWIG_fail;
2931
 
  
2932
 
fail:
2933
 
  lua_error(L);
2934
 
  return SWIG_arg;
2935
 
}
2936
 
 
2937
 
 
2938
 
static int _wrap_node_auto_update_subscription(lua_State* L) {
2939
 
  int SWIG_arg = 0;
2940
 
  nodePtr arg1 = (nodePtr) 0 ;
2941
 
  
2942
 
  SWIG_check_num_args("node_auto_update_subscription",1,1)
2943
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_auto_update_subscription",1,"nodePtr");
2944
 
  
2945
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2946
 
    SWIG_fail_ptr("node_auto_update_subscription",1,SWIGTYPE_p_node);
2947
 
  }
2948
 
  
2949
 
  node_auto_update_subscription(arg1);
2950
 
  
2951
 
  return SWIG_arg;
2952
 
  
2953
 
  if(0) SWIG_fail;
2954
 
  
2955
 
fail:
2956
 
  lua_error(L);
2957
 
  return SWIG_arg;
2958
 
}
2959
 
 
2960
 
 
2961
 
static int _wrap_node_reset_update_counter(lua_State* L) {
2962
 
  int SWIG_arg = 0;
2963
 
  nodePtr arg1 = (nodePtr) 0 ;
2964
 
  GTimeVal *arg2 = (GTimeVal *) 0 ;
2965
 
  
2966
 
  SWIG_check_num_args("node_reset_update_counter",2,2)
2967
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_reset_update_counter",1,"nodePtr");
2968
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node_reset_update_counter",2,"GTimeVal *");
2969
 
  
2970
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
2971
 
    SWIG_fail_ptr("node_reset_update_counter",1,SWIGTYPE_p_node);
2972
 
  }
2973
 
  
2974
 
  
2975
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GTimeVal,0))){
2976
 
    SWIG_fail_ptr("node_reset_update_counter",2,SWIGTYPE_p_GTimeVal);
2977
 
  }
2978
 
  
2979
 
  node_reset_update_counter(arg1,arg2);
2980
 
  
2981
 
  return SWIG_arg;
2982
 
  
2983
 
  if(0) SWIG_fail;
2984
 
  
2985
 
fail:
2986
 
  lua_error(L);
2987
 
  return SWIG_arg;
2988
 
}
2989
 
 
2990
 
 
2991
 
static int _wrap_node_is_ancestor(lua_State* L) {
2992
 
  int SWIG_arg = 0;
2993
 
  nodePtr arg1 = (nodePtr) 0 ;
2994
 
  nodePtr arg2 = (nodePtr) 0 ;
2995
 
  int result;
2996
 
  
2997
 
  SWIG_check_num_args("node_is_ancestor",2,2)
2998
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_is_ancestor",1,"nodePtr");
2999
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node_is_ancestor",2,"nodePtr");
3000
 
  
3001
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3002
 
    SWIG_fail_ptr("node_is_ancestor",1,SWIGTYPE_p_node);
3003
 
  }
3004
 
  
3005
 
  
3006
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_node,0))){
3007
 
    SWIG_fail_ptr("node_is_ancestor",2,SWIGTYPE_p_node);
3008
 
  }
3009
 
  
3010
 
  result = (int)node_is_ancestor(arg1,arg2);
3011
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3012
 
  return SWIG_arg;
3013
 
  
3014
 
  if(0) SWIG_fail;
3015
 
  
3016
 
fail:
3017
 
  lua_error(L);
3018
 
  return SWIG_arg;
3019
 
}
3020
 
 
3021
 
 
3022
 
static int _wrap_node_get_title(lua_State* L) {
3023
 
  int SWIG_arg = 0;
3024
 
  nodePtr arg1 = (nodePtr) 0 ;
3025
 
  char *result = 0 ;
3026
 
  
3027
 
  SWIG_check_num_args("node_get_title",1,1)
3028
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_title",1,"nodePtr");
3029
 
  
3030
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3031
 
    SWIG_fail_ptr("node_get_title",1,SWIGTYPE_p_node);
3032
 
  }
3033
 
  
3034
 
  result = (char *)node_get_title(arg1);
3035
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3036
 
  return SWIG_arg;
3037
 
  
3038
 
  if(0) SWIG_fail;
3039
 
  
3040
 
fail:
3041
 
  lua_error(L);
3042
 
  return SWIG_arg;
3043
 
}
3044
 
 
3045
 
 
3046
 
static int _wrap_node_set_title(lua_State* L) {
3047
 
  int SWIG_arg = 0;
3048
 
  nodePtr arg1 = (nodePtr) 0 ;
3049
 
  char *arg2 = (char *) 0 ;
3050
 
  
3051
 
  SWIG_check_num_args("node_set_title",2,2)
3052
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_title",1,"nodePtr");
3053
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("node_set_title",2,"char const *");
3054
 
  
3055
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3056
 
    SWIG_fail_ptr("node_set_title",1,SWIGTYPE_p_node);
3057
 
  }
3058
 
  
3059
 
  arg2 = (char *)lua_tostring(L, 2);
3060
 
  node_set_title(arg1,(char const *)arg2);
3061
 
  
3062
 
  return SWIG_arg;
3063
 
  
3064
 
  if(0) SWIG_fail;
3065
 
  
3066
 
fail:
3067
 
  lua_error(L);
3068
 
  return SWIG_arg;
3069
 
}
3070
 
 
3071
 
 
3072
 
static int _wrap_node_update_counters(lua_State* L) {
3073
 
  int SWIG_arg = 0;
3074
 
  nodePtr arg1 = (nodePtr) 0 ;
3075
 
  
3076
 
  SWIG_check_num_args("node_update_counters",1,1)
3077
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_update_counters",1,"nodePtr");
3078
 
  
3079
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3080
 
    SWIG_fail_ptr("node_update_counters",1,SWIGTYPE_p_node);
3081
 
  }
3082
 
  
3083
 
  node_update_counters(arg1);
3084
 
  
3085
 
  return SWIG_arg;
3086
 
  
3087
 
  if(0) SWIG_fail;
3088
 
  
3089
 
fail:
3090
 
  lua_error(L);
3091
 
  return SWIG_arg;
3092
 
}
3093
 
 
3094
 
 
3095
 
static int _wrap_node_mark_all_read(lua_State* L) {
3096
 
  int SWIG_arg = 0;
3097
 
  nodePtr arg1 = (nodePtr) 0 ;
3098
 
  
3099
 
  SWIG_check_num_args("node_mark_all_read",1,1)
3100
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_mark_all_read",1,"nodePtr");
3101
 
  
3102
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3103
 
    SWIG_fail_ptr("node_mark_all_read",1,SWIGTYPE_p_node);
3104
 
  }
3105
 
  
3106
 
  node_mark_all_read(arg1);
3107
 
  
3108
 
  return SWIG_arg;
3109
 
  
3110
 
  if(0) SWIG_fail;
3111
 
  
3112
 
fail:
3113
 
  lua_error(L);
3114
 
  return SWIG_arg;
3115
 
}
3116
 
 
3117
 
 
3118
 
static int _wrap_node_set_icon(lua_State* L) {
3119
 
  int SWIG_arg = 0;
3120
 
  nodePtr arg1 = (nodePtr) 0 ;
3121
 
  gpointer arg2 ;
3122
 
  gpointer *argp2 ;
3123
 
  
3124
 
  SWIG_check_num_args("node_set_icon",2,2)
3125
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_icon",1,"nodePtr");
3126
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_set_icon",2,"gpointer");
3127
 
  
3128
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3129
 
    SWIG_fail_ptr("node_set_icon",1,SWIGTYPE_p_node);
3130
 
  }
3131
 
  
3132
 
  
3133
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
3134
 
    SWIG_fail_ptr("node_set_icon",2,SWIGTYPE_p_gpointer);
3135
 
  }
3136
 
  arg2 = *argp2;
3137
 
  
3138
 
  node_set_icon(arg1,arg2);
3139
 
  
3140
 
  return SWIG_arg;
3141
 
  
3142
 
  if(0) SWIG_fail;
3143
 
  
3144
 
fail:
3145
 
  lua_error(L);
3146
 
  return SWIG_arg;
3147
 
}
3148
 
 
3149
 
 
3150
 
static int _wrap_node_get_icon(lua_State* L) {
3151
 
  int SWIG_arg = 0;
3152
 
  nodePtr arg1 = (nodePtr) 0 ;
3153
 
  gpointer result;
3154
 
  
3155
 
  SWIG_check_num_args("node_get_icon",1,1)
3156
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_icon",1,"nodePtr");
3157
 
  
3158
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3159
 
    SWIG_fail_ptr("node_get_icon",1,SWIGTYPE_p_node);
3160
 
  }
3161
 
  
3162
 
  result = node_get_icon(arg1);
3163
 
  {
3164
 
    gpointer * resultptr;
3165
 
    resultptr = (gpointer *) malloc(sizeof(gpointer));
3166
 
    memmove(resultptr, &result, sizeof(gpointer));
3167
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gpointer,1); SWIG_arg++;
3168
 
  }
3169
 
  return SWIG_arg;
3170
 
  
3171
 
  if(0) SWIG_fail;
3172
 
  
3173
 
fail:
3174
 
  lua_error(L);
3175
 
  return SWIG_arg;
3176
 
}
3177
 
 
3178
 
 
3179
 
static int _wrap_node_get_favicon_file(lua_State* L) {
3180
 
  int SWIG_arg = 0;
3181
 
  nodePtr arg1 = (nodePtr) 0 ;
3182
 
  char *result = 0 ;
3183
 
  
3184
 
  SWIG_check_num_args("node_get_favicon_file",1,1)
3185
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_favicon_file",1,"nodePtr");
3186
 
  
3187
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3188
 
    SWIG_fail_ptr("node_get_favicon_file",1,SWIGTYPE_p_node);
3189
 
  }
3190
 
  
3191
 
  result = (char *)node_get_favicon_file(arg1);
3192
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3193
 
  return SWIG_arg;
3194
 
  
3195
 
  if(0) SWIG_fail;
3196
 
  
3197
 
fail:
3198
 
  lua_error(L);
3199
 
  return SWIG_arg;
3200
 
}
3201
 
 
3202
 
 
3203
 
static int _wrap_node_new_id(lua_State* L) {
3204
 
  int SWIG_arg = 0;
3205
 
  char *result = 0 ;
3206
 
  
3207
 
  SWIG_check_num_args("node_new_id",0,0)
3208
 
  result = (char *)node_new_id();
3209
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3210
 
  return SWIG_arg;
3211
 
  
3212
 
  if(0) SWIG_fail;
3213
 
  
3214
 
fail:
3215
 
  lua_error(L);
3216
 
  return SWIG_arg;
3217
 
}
3218
 
 
3219
 
 
3220
 
static int _wrap_node_get_id(lua_State* L) {
3221
 
  int SWIG_arg = 0;
3222
 
  nodePtr arg1 = (nodePtr) 0 ;
3223
 
  char *result = 0 ;
3224
 
  
3225
 
  SWIG_check_num_args("node_get_id",1,1)
3226
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_id",1,"nodePtr");
3227
 
  
3228
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3229
 
    SWIG_fail_ptr("node_get_id",1,SWIGTYPE_p_node);
3230
 
  }
3231
 
  
3232
 
  result = (char *)node_get_id(arg1);
3233
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3234
 
  return SWIG_arg;
3235
 
  
3236
 
  if(0) SWIG_fail;
3237
 
  
3238
 
fail:
3239
 
  lua_error(L);
3240
 
  return SWIG_arg;
3241
 
}
3242
 
 
3243
 
 
3244
 
static int _wrap_node_set_id(lua_State* L) {
3245
 
  int SWIG_arg = 0;
3246
 
  nodePtr arg1 = (nodePtr) 0 ;
3247
 
  char *arg2 = (char *) 0 ;
3248
 
  
3249
 
  SWIG_check_num_args("node_set_id",2,2)
3250
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_id",1,"nodePtr");
3251
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("node_set_id",2,"char const *");
3252
 
  
3253
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3254
 
    SWIG_fail_ptr("node_set_id",1,SWIGTYPE_p_node);
3255
 
  }
3256
 
  
3257
 
  arg2 = (char *)lua_tostring(L, 2);
3258
 
  node_set_id(arg1,(char const *)arg2);
3259
 
  
3260
 
  return SWIG_arg;
3261
 
  
3262
 
  if(0) SWIG_fail;
3263
 
  
3264
 
fail:
3265
 
  lua_error(L);
3266
 
  return SWIG_arg;
3267
 
}
3268
 
 
3269
 
 
3270
 
static int _wrap_node_free(lua_State* L) {
3271
 
  int SWIG_arg = 0;
3272
 
  nodePtr arg1 = (nodePtr) 0 ;
3273
 
  
3274
 
  SWIG_check_num_args("node_free",1,1)
3275
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_free",1,"nodePtr");
3276
 
  
3277
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3278
 
    SWIG_fail_ptr("node_free",1,SWIGTYPE_p_node);
3279
 
  }
3280
 
  
3281
 
  node_free(arg1);
3282
 
  
3283
 
  return SWIG_arg;
3284
 
  
3285
 
  if(0) SWIG_fail;
3286
 
  
3287
 
fail:
3288
 
  lua_error(L);
3289
 
  return SWIG_arg;
3290
 
}
3291
 
 
3292
 
 
3293
 
static int _wrap_node_default_render(lua_State* L) {
3294
 
  int SWIG_arg = 0;
3295
 
  nodePtr arg1 = (nodePtr) 0 ;
3296
 
  char *result = 0 ;
3297
 
  
3298
 
  SWIG_check_num_args("node_default_render",1,1)
3299
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_default_render",1,"nodePtr");
3300
 
  
3301
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3302
 
    SWIG_fail_ptr("node_default_render",1,SWIGTYPE_p_node);
3303
 
  }
3304
 
  
3305
 
  result = (char *)node_default_render(arg1);
3306
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3307
 
  return SWIG_arg;
3308
 
  
3309
 
  if(0) SWIG_fail;
3310
 
  
3311
 
fail:
3312
 
  lua_error(L);
3313
 
  return SWIG_arg;
3314
 
}
3315
 
 
3316
 
 
3317
 
static int _wrap_node_save(lua_State* L) {
3318
 
  int SWIG_arg = 0;
3319
 
  nodePtr arg1 = (nodePtr) 0 ;
3320
 
  
3321
 
  SWIG_check_num_args("node_save",1,1)
3322
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_save",1,"nodePtr");
3323
 
  
3324
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3325
 
    SWIG_fail_ptr("node_save",1,SWIGTYPE_p_node);
3326
 
  }
3327
 
  
3328
 
  node_save(arg1);
3329
 
  
3330
 
  return SWIG_arg;
3331
 
  
3332
 
  if(0) SWIG_fail;
3333
 
  
3334
 
fail:
3335
 
  lua_error(L);
3336
 
  return SWIG_arg;
3337
 
}
3338
 
 
3339
 
 
3340
 
static int _wrap_node_get_itemset(lua_State* L) {
3341
 
  int SWIG_arg = 0;
3342
 
  nodePtr arg1 = (nodePtr) 0 ;
3343
 
  itemSetPtr result;
3344
 
  
3345
 
  SWIG_check_num_args("node_get_itemset",1,1)
3346
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_itemset",1,"nodePtr");
3347
 
  
3348
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3349
 
    SWIG_fail_ptr("node_get_itemset",1,SWIGTYPE_p_node);
3350
 
  }
3351
 
  
3352
 
  result = node_get_itemset(arg1);
3353
 
  {
3354
 
    itemSetPtr * resultptr;
3355
 
    resultptr = (itemSetPtr *) malloc(sizeof(itemSetPtr));
3356
 
    memmove(resultptr, &result, sizeof(itemSetPtr));
3357
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_itemSetPtr,1); SWIG_arg++;
3358
 
  }
3359
 
  return SWIG_arg;
3360
 
  
3361
 
  if(0) SWIG_fail;
3362
 
  
3363
 
fail:
3364
 
  lua_error(L);
3365
 
  return SWIG_arg;
3366
 
}
3367
 
 
3368
 
 
3369
 
static int _wrap_node_render(lua_State* L) {
3370
 
  int SWIG_arg = 0;
3371
 
  nodePtr arg1 = (nodePtr) 0 ;
3372
 
  char *result = 0 ;
3373
 
  
3374
 
  SWIG_check_num_args("node_render",1,1)
3375
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_render",1,"nodePtr");
3376
 
  
3377
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3378
 
    SWIG_fail_ptr("node_render",1,SWIGTYPE_p_node);
3379
 
  }
3380
 
  
3381
 
  result = (char *)node_render(arg1);
3382
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3383
 
  return SWIG_arg;
3384
 
  
3385
 
  if(0) SWIG_fail;
3386
 
  
3387
 
fail:
3388
 
  lua_error(L);
3389
 
  return SWIG_arg;
3390
 
}
3391
 
 
3392
 
 
3393
 
static int _wrap_node_update_favicon(lua_State* L) {
3394
 
  int SWIG_arg = 0;
3395
 
  nodePtr arg1 = (nodePtr) 0 ;
3396
 
  
3397
 
  SWIG_check_num_args("node_update_favicon",1,1)
3398
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_update_favicon",1,"nodePtr");
3399
 
  
3400
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3401
 
    SWIG_fail_ptr("node_update_favicon",1,SWIGTYPE_p_node);
3402
 
  }
3403
 
  
3404
 
  node_update_favicon(arg1);
3405
 
  
3406
 
  return SWIG_arg;
3407
 
  
3408
 
  if(0) SWIG_fail;
3409
 
  
3410
 
fail:
3411
 
  lua_error(L);
3412
 
  return SWIG_arg;
3413
 
}
3414
 
 
3415
 
 
3416
 
static int _wrap_node_set_sort_column(lua_State* L) {
3417
 
  int SWIG_arg = 0;
3418
 
  nodePtr arg1 = (nodePtr) 0 ;
3419
 
  int arg2 ;
3420
 
  int arg3 ;
3421
 
  int result;
3422
 
  
3423
 
  SWIG_check_num_args("node_set_sort_column",3,3)
3424
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_sort_column",1,"nodePtr");
3425
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("node_set_sort_column",2,"int");
3426
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("node_set_sort_column",3,"int");
3427
 
  
3428
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3429
 
    SWIG_fail_ptr("node_set_sort_column",1,SWIGTYPE_p_node);
3430
 
  }
3431
 
  
3432
 
  arg2 = (int)lua_tonumber(L, 2);
3433
 
  arg3 = (int)lua_tonumber(L, 3);
3434
 
  result = (int)node_set_sort_column(arg1,arg2,arg3);
3435
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3436
 
  return SWIG_arg;
3437
 
  
3438
 
  if(0) SWIG_fail;
3439
 
  
3440
 
fail:
3441
 
  lua_error(L);
3442
 
  return SWIG_arg;
3443
 
}
3444
 
 
3445
 
 
3446
 
static int _wrap_node_set_view_mode(lua_State* L) {
3447
 
  int SWIG_arg = 0;
3448
 
  nodePtr arg1 = (nodePtr) 0 ;
3449
 
  nodeViewType arg2 ;
3450
 
  nodeViewType *argp2 ;
3451
 
  
3452
 
  SWIG_check_num_args("node_set_view_mode",2,2)
3453
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_set_view_mode",1,"nodePtr");
3454
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_set_view_mode",2,"nodeViewType");
3455
 
  
3456
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3457
 
    SWIG_fail_ptr("node_set_view_mode",1,SWIGTYPE_p_node);
3458
 
  }
3459
 
  
3460
 
  
3461
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_nodeViewType,0))){
3462
 
    SWIG_fail_ptr("node_set_view_mode",2,SWIGTYPE_p_nodeViewType);
3463
 
  }
3464
 
  arg2 = *argp2;
3465
 
  
3466
 
  node_set_view_mode(arg1,arg2);
3467
 
  
3468
 
  return SWIG_arg;
3469
 
  
3470
 
  if(0) SWIG_fail;
3471
 
  
3472
 
fail:
3473
 
  lua_error(L);
3474
 
  return SWIG_arg;
3475
 
}
3476
 
 
3477
 
 
3478
 
static int _wrap_node_get_view_mode(lua_State* L) {
3479
 
  int SWIG_arg = 0;
3480
 
  nodePtr arg1 = (nodePtr) 0 ;
3481
 
  nodeViewType result;
3482
 
  
3483
 
  SWIG_check_num_args("node_get_view_mode",1,1)
3484
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_view_mode",1,"nodePtr");
3485
 
  
3486
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3487
 
    SWIG_fail_ptr("node_get_view_mode",1,SWIGTYPE_p_node);
3488
 
  }
3489
 
  
3490
 
  result = node_get_view_mode(arg1);
3491
 
  {
3492
 
    nodeViewType * resultptr;
3493
 
    resultptr = (nodeViewType *) malloc(sizeof(nodeViewType));
3494
 
    memmove(resultptr, &result, sizeof(nodeViewType));
3495
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_nodeViewType,1); SWIG_arg++;
3496
 
  }
3497
 
  return SWIG_arg;
3498
 
  
3499
 
  if(0) SWIG_fail;
3500
 
  
3501
 
fail:
3502
 
  lua_error(L);
3503
 
  return SWIG_arg;
3504
 
}
3505
 
 
3506
 
 
3507
 
static int _wrap_node_load_link_preferred(lua_State* L) {
3508
 
  int SWIG_arg = 0;
3509
 
  nodePtr arg1 = (nodePtr) 0 ;
3510
 
  int result;
3511
 
  
3512
 
  SWIG_check_num_args("node_load_link_preferred",1,1)
3513
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_load_link_preferred",1,"nodePtr");
3514
 
  
3515
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3516
 
    SWIG_fail_ptr("node_load_link_preferred",1,SWIGTYPE_p_node);
3517
 
  }
3518
 
  
3519
 
  result = (int)node_load_link_preferred(arg1);
3520
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3521
 
  return SWIG_arg;
3522
 
  
3523
 
  if(0) SWIG_fail;
3524
 
  
3525
 
fail:
3526
 
  lua_error(L);
3527
 
  return SWIG_arg;
3528
 
}
3529
 
 
3530
 
 
3531
 
static int _wrap_node_get_base_url(lua_State* L) {
3532
 
  int SWIG_arg = 0;
3533
 
  nodePtr arg1 = (nodePtr) 0 ;
3534
 
  char *result = 0 ;
3535
 
  
3536
 
  SWIG_check_num_args("node_get_base_url",1,1)
3537
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_get_base_url",1,"nodePtr");
3538
 
  
3539
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3540
 
    SWIG_fail_ptr("node_get_base_url",1,SWIGTYPE_p_node);
3541
 
  }
3542
 
  
3543
 
  result = (char *)node_get_base_url(arg1);
3544
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3545
 
  return SWIG_arg;
3546
 
  
3547
 
  if(0) SWIG_fail;
3548
 
  
3549
 
fail:
3550
 
  lua_error(L);
3551
 
  return SWIG_arg;
3552
 
}
3553
 
 
3554
 
 
3555
 
static int _wrap_node_foreach_child_full(lua_State* L) {
3556
 
  int SWIG_arg = 0;
3557
 
  nodePtr arg1 = (nodePtr) 0 ;
3558
 
  gpointer arg2 ;
3559
 
  int arg3 ;
3560
 
  gpointer arg4 ;
3561
 
  gpointer *argp2 ;
3562
 
  gpointer *argp4 ;
3563
 
  
3564
 
  SWIG_check_num_args("node_foreach_child_full",4,4)
3565
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_foreach_child_full",1,"nodePtr");
3566
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_foreach_child_full",2,"gpointer");
3567
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("node_foreach_child_full",3,"int");
3568
 
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("node_foreach_child_full",4,"gpointer");
3569
 
  
3570
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
3571
 
    SWIG_fail_ptr("node_foreach_child_full",1,SWIGTYPE_p_node);
3572
 
  }
3573
 
  
3574
 
  
3575
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
3576
 
    SWIG_fail_ptr("node_foreach_child_full",2,SWIGTYPE_p_gpointer);
3577
 
  }
3578
 
  arg2 = *argp2;
3579
 
  
3580
 
  arg3 = (int)lua_tonumber(L, 3);
3581
 
  
3582
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&argp4,SWIGTYPE_p_gpointer,0))){
3583
 
    SWIG_fail_ptr("node_foreach_child_full",4,SWIGTYPE_p_gpointer);
3584
 
  }
3585
 
  arg4 = *argp4;
3586
 
  
3587
 
  node_foreach_child_full(arg1,arg2,arg3,arg4);
3588
 
  
3589
 
  return SWIG_arg;
3590
 
  
3591
 
  if(0) SWIG_fail;
3592
 
  
3593
 
fail:
3594
 
  lua_error(L);
3595
 
  return SWIG_arg;
3596
 
}
3597
 
 
3598
 
 
3599
 
static int _wrap_item_id_set(lua_State* L) {
3600
 
  int SWIG_arg = 0;
3601
 
  struct item *arg1 = (struct item *) 0 ;
3602
 
  gulong arg2 ;
3603
 
  gulong *argp2 ;
3604
 
  
3605
 
  SWIG_check_num_args("id",2,2)
3606
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("id",1,"struct item *");
3607
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("id",2,"gulong");
3608
 
  
3609
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3610
 
    SWIG_fail_ptr("item_id_set",1,SWIGTYPE_p_item);
3611
 
  }
3612
 
  
3613
 
  
3614
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gulong,0))){
3615
 
    SWIG_fail_ptr("item_id_set",2,SWIGTYPE_p_gulong);
3616
 
  }
3617
 
  arg2 = *argp2;
3618
 
  
3619
 
  if (arg1) (arg1)->id = arg2;
3620
 
  
3621
 
  return SWIG_arg;
3622
 
  
3623
 
  if(0) SWIG_fail;
3624
 
  
3625
 
fail:
3626
 
  lua_error(L);
3627
 
  return SWIG_arg;
3628
 
}
3629
 
 
3630
 
 
3631
 
static int _wrap_item_id_get(lua_State* L) {
3632
 
  int SWIG_arg = 0;
3633
 
  struct item *arg1 = (struct item *) 0 ;
3634
 
  gulong result;
3635
 
  
3636
 
  SWIG_check_num_args("id",1,1)
3637
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("id",1,"struct item *");
3638
 
  
3639
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3640
 
    SWIG_fail_ptr("item_id_get",1,SWIGTYPE_p_item);
3641
 
  }
3642
 
  
3643
 
  result =  ((arg1)->id);
3644
 
  {
3645
 
    gulong * resultptr;
3646
 
    resultptr = (gulong *) malloc(sizeof(gulong));
3647
 
    memmove(resultptr, &result, sizeof(gulong));
3648
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gulong,1); SWIG_arg++;
3649
 
  }
3650
 
  return SWIG_arg;
3651
 
  
3652
 
  if(0) SWIG_fail;
3653
 
  
3654
 
fail:
3655
 
  lua_error(L);
3656
 
  return SWIG_arg;
3657
 
}
3658
 
 
3659
 
 
3660
 
static int _wrap_item_readStatus_set(lua_State* L) {
3661
 
  int SWIG_arg = 0;
3662
 
  struct item *arg1 = (struct item *) 0 ;
3663
 
  int arg2 ;
3664
 
  
3665
 
  SWIG_check_num_args("readStatus",2,2)
3666
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("readStatus",1,"struct item *");
3667
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("readStatus",2,"int");
3668
 
  
3669
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3670
 
    SWIG_fail_ptr("item_readStatus_set",1,SWIGTYPE_p_item);
3671
 
  }
3672
 
  
3673
 
  arg2 = (int)lua_tonumber(L, 2);
3674
 
  if (arg1) (arg1)->readStatus = arg2;
3675
 
  
3676
 
  return SWIG_arg;
3677
 
  
3678
 
  if(0) SWIG_fail;
3679
 
  
3680
 
fail:
3681
 
  lua_error(L);
3682
 
  return SWIG_arg;
3683
 
}
3684
 
 
3685
 
 
3686
 
static int _wrap_item_readStatus_get(lua_State* L) {
3687
 
  int SWIG_arg = 0;
3688
 
  struct item *arg1 = (struct item *) 0 ;
3689
 
  int result;
3690
 
  
3691
 
  SWIG_check_num_args("readStatus",1,1)
3692
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("readStatus",1,"struct item *");
3693
 
  
3694
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3695
 
    SWIG_fail_ptr("item_readStatus_get",1,SWIGTYPE_p_item);
3696
 
  }
3697
 
  
3698
 
  result = (int) ((arg1)->readStatus);
3699
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3700
 
  return SWIG_arg;
3701
 
  
3702
 
  if(0) SWIG_fail;
3703
 
  
3704
 
fail:
3705
 
  lua_error(L);
3706
 
  return SWIG_arg;
3707
 
}
3708
 
 
3709
 
 
3710
 
static int _wrap_item_popupStatus_set(lua_State* L) {
3711
 
  int SWIG_arg = 0;
3712
 
  struct item *arg1 = (struct item *) 0 ;
3713
 
  int arg2 ;
3714
 
  
3715
 
  SWIG_check_num_args("popupStatus",2,2)
3716
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("popupStatus",1,"struct item *");
3717
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("popupStatus",2,"int");
3718
 
  
3719
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3720
 
    SWIG_fail_ptr("item_popupStatus_set",1,SWIGTYPE_p_item);
3721
 
  }
3722
 
  
3723
 
  arg2 = (int)lua_tonumber(L, 2);
3724
 
  if (arg1) (arg1)->popupStatus = arg2;
3725
 
  
3726
 
  return SWIG_arg;
3727
 
  
3728
 
  if(0) SWIG_fail;
3729
 
  
3730
 
fail:
3731
 
  lua_error(L);
3732
 
  return SWIG_arg;
3733
 
}
3734
 
 
3735
 
 
3736
 
static int _wrap_item_popupStatus_get(lua_State* L) {
3737
 
  int SWIG_arg = 0;
3738
 
  struct item *arg1 = (struct item *) 0 ;
3739
 
  int result;
3740
 
  
3741
 
  SWIG_check_num_args("popupStatus",1,1)
3742
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("popupStatus",1,"struct item *");
3743
 
  
3744
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3745
 
    SWIG_fail_ptr("item_popupStatus_get",1,SWIGTYPE_p_item);
3746
 
  }
3747
 
  
3748
 
  result = (int) ((arg1)->popupStatus);
3749
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3750
 
  return SWIG_arg;
3751
 
  
3752
 
  if(0) SWIG_fail;
3753
 
  
3754
 
fail:
3755
 
  lua_error(L);
3756
 
  return SWIG_arg;
3757
 
}
3758
 
 
3759
 
 
3760
 
static int _wrap_item_updateStatus_set(lua_State* L) {
3761
 
  int SWIG_arg = 0;
3762
 
  struct item *arg1 = (struct item *) 0 ;
3763
 
  int arg2 ;
3764
 
  
3765
 
  SWIG_check_num_args("updateStatus",2,2)
3766
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateStatus",1,"struct item *");
3767
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("updateStatus",2,"int");
3768
 
  
3769
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3770
 
    SWIG_fail_ptr("item_updateStatus_set",1,SWIGTYPE_p_item);
3771
 
  }
3772
 
  
3773
 
  arg2 = (int)lua_tonumber(L, 2);
3774
 
  if (arg1) (arg1)->updateStatus = arg2;
3775
 
  
3776
 
  return SWIG_arg;
3777
 
  
3778
 
  if(0) SWIG_fail;
3779
 
  
3780
 
fail:
3781
 
  lua_error(L);
3782
 
  return SWIG_arg;
3783
 
}
3784
 
 
3785
 
 
3786
 
static int _wrap_item_updateStatus_get(lua_State* L) {
3787
 
  int SWIG_arg = 0;
3788
 
  struct item *arg1 = (struct item *) 0 ;
3789
 
  int result;
3790
 
  
3791
 
  SWIG_check_num_args("updateStatus",1,1)
3792
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateStatus",1,"struct item *");
3793
 
  
3794
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3795
 
    SWIG_fail_ptr("item_updateStatus_get",1,SWIGTYPE_p_item);
3796
 
  }
3797
 
  
3798
 
  result = (int) ((arg1)->updateStatus);
3799
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3800
 
  return SWIG_arg;
3801
 
  
3802
 
  if(0) SWIG_fail;
3803
 
  
3804
 
fail:
3805
 
  lua_error(L);
3806
 
  return SWIG_arg;
3807
 
}
3808
 
 
3809
 
 
3810
 
static int _wrap_item_flagStatus_set(lua_State* L) {
3811
 
  int SWIG_arg = 0;
3812
 
  struct item *arg1 = (struct item *) 0 ;
3813
 
  int arg2 ;
3814
 
  
3815
 
  SWIG_check_num_args("flagStatus",2,2)
3816
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flagStatus",1,"struct item *");
3817
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("flagStatus",2,"int");
3818
 
  
3819
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3820
 
    SWIG_fail_ptr("item_flagStatus_set",1,SWIGTYPE_p_item);
3821
 
  }
3822
 
  
3823
 
  arg2 = (int)lua_tonumber(L, 2);
3824
 
  if (arg1) (arg1)->flagStatus = arg2;
3825
 
  
3826
 
  return SWIG_arg;
3827
 
  
3828
 
  if(0) SWIG_fail;
3829
 
  
3830
 
fail:
3831
 
  lua_error(L);
3832
 
  return SWIG_arg;
3833
 
}
3834
 
 
3835
 
 
3836
 
static int _wrap_item_flagStatus_get(lua_State* L) {
3837
 
  int SWIG_arg = 0;
3838
 
  struct item *arg1 = (struct item *) 0 ;
3839
 
  int result;
3840
 
  
3841
 
  SWIG_check_num_args("flagStatus",1,1)
3842
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flagStatus",1,"struct item *");
3843
 
  
3844
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3845
 
    SWIG_fail_ptr("item_flagStatus_get",1,SWIGTYPE_p_item);
3846
 
  }
3847
 
  
3848
 
  result = (int) ((arg1)->flagStatus);
3849
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3850
 
  return SWIG_arg;
3851
 
  
3852
 
  if(0) SWIG_fail;
3853
 
  
3854
 
fail:
3855
 
  lua_error(L);
3856
 
  return SWIG_arg;
3857
 
}
3858
 
 
3859
 
 
3860
 
static int _wrap_item_hasEnclosure_set(lua_State* L) {
3861
 
  int SWIG_arg = 0;
3862
 
  struct item *arg1 = (struct item *) 0 ;
3863
 
  int arg2 ;
3864
 
  
3865
 
  SWIG_check_num_args("hasEnclosure",2,2)
3866
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hasEnclosure",1,"struct item *");
3867
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("hasEnclosure",2,"int");
3868
 
  
3869
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3870
 
    SWIG_fail_ptr("item_hasEnclosure_set",1,SWIGTYPE_p_item);
3871
 
  }
3872
 
  
3873
 
  arg2 = (int)lua_tonumber(L, 2);
3874
 
  if (arg1) (arg1)->hasEnclosure = arg2;
3875
 
  
3876
 
  return SWIG_arg;
3877
 
  
3878
 
  if(0) SWIG_fail;
3879
 
  
3880
 
fail:
3881
 
  lua_error(L);
3882
 
  return SWIG_arg;
3883
 
}
3884
 
 
3885
 
 
3886
 
static int _wrap_item_hasEnclosure_get(lua_State* L) {
3887
 
  int SWIG_arg = 0;
3888
 
  struct item *arg1 = (struct item *) 0 ;
3889
 
  int result;
3890
 
  
3891
 
  SWIG_check_num_args("hasEnclosure",1,1)
3892
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hasEnclosure",1,"struct item *");
3893
 
  
3894
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3895
 
    SWIG_fail_ptr("item_hasEnclosure_get",1,SWIGTYPE_p_item);
3896
 
  }
3897
 
  
3898
 
  result = (int) ((arg1)->hasEnclosure);
3899
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3900
 
  return SWIG_arg;
3901
 
  
3902
 
  if(0) SWIG_fail;
3903
 
  
3904
 
fail:
3905
 
  lua_error(L);
3906
 
  return SWIG_arg;
3907
 
}
3908
 
 
3909
 
 
3910
 
static int _wrap_item_title_set(lua_State* L) {
3911
 
  int SWIG_arg = 0;
3912
 
  struct item *arg1 = (struct item *) 0 ;
3913
 
  char *arg2 = (char *) 0 ;
3914
 
  
3915
 
  SWIG_check_num_args("title",2,2)
3916
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct item *");
3917
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("title",2,"char *");
3918
 
  
3919
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3920
 
    SWIG_fail_ptr("item_title_set",1,SWIGTYPE_p_item);
3921
 
  }
3922
 
  
3923
 
  arg2 = (char *)lua_tostring(L, 2);
3924
 
  {
3925
 
    if (arg1->title) free((char *)arg1->title);
3926
 
    if (arg2) {
3927
 
      arg1->title = (char *) malloc(strlen((const char *)arg2)+1);
3928
 
      strcpy((char *)arg1->title, (const char *)arg2);
3929
 
    } else {
3930
 
      arg1->title = 0;
3931
 
    }
3932
 
  }
3933
 
  
3934
 
  return SWIG_arg;
3935
 
  
3936
 
  if(0) SWIG_fail;
3937
 
  
3938
 
fail:
3939
 
  lua_error(L);
3940
 
  return SWIG_arg;
3941
 
}
3942
 
 
3943
 
 
3944
 
static int _wrap_item_title_get(lua_State* L) {
3945
 
  int SWIG_arg = 0;
3946
 
  struct item *arg1 = (struct item *) 0 ;
3947
 
  char *result = 0 ;
3948
 
  
3949
 
  SWIG_check_num_args("title",1,1)
3950
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct item *");
3951
 
  
3952
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3953
 
    SWIG_fail_ptr("item_title_get",1,SWIGTYPE_p_item);
3954
 
  }
3955
 
  
3956
 
  result = (char *) ((arg1)->title);
3957
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
3958
 
  return SWIG_arg;
3959
 
  
3960
 
  if(0) SWIG_fail;
3961
 
  
3962
 
fail:
3963
 
  lua_error(L);
3964
 
  return SWIG_arg;
3965
 
}
3966
 
 
3967
 
 
3968
 
static int _wrap_item_source_set(lua_State* L) {
3969
 
  int SWIG_arg = 0;
3970
 
  struct item *arg1 = (struct item *) 0 ;
3971
 
  char *arg2 = (char *) 0 ;
3972
 
  
3973
 
  SWIG_check_num_args("source",2,2)
3974
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct item *");
3975
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("source",2,"char *");
3976
 
  
3977
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
3978
 
    SWIG_fail_ptr("item_source_set",1,SWIGTYPE_p_item);
3979
 
  }
3980
 
  
3981
 
  arg2 = (char *)lua_tostring(L, 2);
3982
 
  {
3983
 
    if (arg1->source) free((char *)arg1->source);
3984
 
    if (arg2) {
3985
 
      arg1->source = (char *) malloc(strlen((const char *)arg2)+1);
3986
 
      strcpy((char *)arg1->source, (const char *)arg2);
3987
 
    } else {
3988
 
      arg1->source = 0;
3989
 
    }
3990
 
  }
3991
 
  
3992
 
  return SWIG_arg;
3993
 
  
3994
 
  if(0) SWIG_fail;
3995
 
  
3996
 
fail:
3997
 
  lua_error(L);
3998
 
  return SWIG_arg;
3999
 
}
4000
 
 
4001
 
 
4002
 
static int _wrap_item_source_get(lua_State* L) {
4003
 
  int SWIG_arg = 0;
4004
 
  struct item *arg1 = (struct item *) 0 ;
4005
 
  char *result = 0 ;
4006
 
  
4007
 
  SWIG_check_num_args("source",1,1)
4008
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct item *");
4009
 
  
4010
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4011
 
    SWIG_fail_ptr("item_source_get",1,SWIGTYPE_p_item);
4012
 
  }
4013
 
  
4014
 
  result = (char *) ((arg1)->source);
4015
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4016
 
  return SWIG_arg;
4017
 
  
4018
 
  if(0) SWIG_fail;
4019
 
  
4020
 
fail:
4021
 
  lua_error(L);
4022
 
  return SWIG_arg;
4023
 
}
4024
 
 
4025
 
 
4026
 
static int _wrap_item_sourceId_set(lua_State* L) {
4027
 
  int SWIG_arg = 0;
4028
 
  struct item *arg1 = (struct item *) 0 ;
4029
 
  char *arg2 = (char *) 0 ;
4030
 
  
4031
 
  SWIG_check_num_args("sourceId",2,2)
4032
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sourceId",1,"struct item *");
4033
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("sourceId",2,"char *");
4034
 
  
4035
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4036
 
    SWIG_fail_ptr("item_sourceId_set",1,SWIGTYPE_p_item);
4037
 
  }
4038
 
  
4039
 
  arg2 = (char *)lua_tostring(L, 2);
4040
 
  {
4041
 
    if (arg1->sourceId) free((char *)arg1->sourceId);
4042
 
    if (arg2) {
4043
 
      arg1->sourceId = (char *) malloc(strlen((const char *)arg2)+1);
4044
 
      strcpy((char *)arg1->sourceId, (const char *)arg2);
4045
 
    } else {
4046
 
      arg1->sourceId = 0;
4047
 
    }
4048
 
  }
4049
 
  
4050
 
  return SWIG_arg;
4051
 
  
4052
 
  if(0) SWIG_fail;
4053
 
  
4054
 
fail:
4055
 
  lua_error(L);
4056
 
  return SWIG_arg;
4057
 
}
4058
 
 
4059
 
 
4060
 
static int _wrap_item_sourceId_get(lua_State* L) {
4061
 
  int SWIG_arg = 0;
4062
 
  struct item *arg1 = (struct item *) 0 ;
4063
 
  char *result = 0 ;
4064
 
  
4065
 
  SWIG_check_num_args("sourceId",1,1)
4066
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sourceId",1,"struct item *");
4067
 
  
4068
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4069
 
    SWIG_fail_ptr("item_sourceId_get",1,SWIGTYPE_p_item);
4070
 
  }
4071
 
  
4072
 
  result = (char *) ((arg1)->sourceId);
4073
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4074
 
  return SWIG_arg;
4075
 
  
4076
 
  if(0) SWIG_fail;
4077
 
  
4078
 
fail:
4079
 
  lua_error(L);
4080
 
  return SWIG_arg;
4081
 
}
4082
 
 
4083
 
 
4084
 
static int _wrap_item_validGuid_set(lua_State* L) {
4085
 
  int SWIG_arg = 0;
4086
 
  struct item *arg1 = (struct item *) 0 ;
4087
 
  int arg2 ;
4088
 
  
4089
 
  SWIG_check_num_args("validGuid",2,2)
4090
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("validGuid",1,"struct item *");
4091
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("validGuid",2,"int");
4092
 
  
4093
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4094
 
    SWIG_fail_ptr("item_validGuid_set",1,SWIGTYPE_p_item);
4095
 
  }
4096
 
  
4097
 
  arg2 = (int)lua_tonumber(L, 2);
4098
 
  if (arg1) (arg1)->validGuid = arg2;
4099
 
  
4100
 
  return SWIG_arg;
4101
 
  
4102
 
  if(0) SWIG_fail;
4103
 
  
4104
 
fail:
4105
 
  lua_error(L);
4106
 
  return SWIG_arg;
4107
 
}
4108
 
 
4109
 
 
4110
 
static int _wrap_item_validGuid_get(lua_State* L) {
4111
 
  int SWIG_arg = 0;
4112
 
  struct item *arg1 = (struct item *) 0 ;
4113
 
  int result;
4114
 
  
4115
 
  SWIG_check_num_args("validGuid",1,1)
4116
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("validGuid",1,"struct item *");
4117
 
  
4118
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4119
 
    SWIG_fail_ptr("item_validGuid_get",1,SWIGTYPE_p_item);
4120
 
  }
4121
 
  
4122
 
  result = (int) ((arg1)->validGuid);
4123
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4124
 
  return SWIG_arg;
4125
 
  
4126
 
  if(0) SWIG_fail;
4127
 
  
4128
 
fail:
4129
 
  lua_error(L);
4130
 
  return SWIG_arg;
4131
 
}
4132
 
 
4133
 
 
4134
 
static int _wrap_item_description_set(lua_State* L) {
4135
 
  int SWIG_arg = 0;
4136
 
  struct item *arg1 = (struct item *) 0 ;
4137
 
  char *arg2 = (char *) 0 ;
4138
 
  
4139
 
  SWIG_check_num_args("description",2,2)
4140
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("description",1,"struct item *");
4141
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("description",2,"char *");
4142
 
  
4143
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4144
 
    SWIG_fail_ptr("item_description_set",1,SWIGTYPE_p_item);
4145
 
  }
4146
 
  
4147
 
  arg2 = (char *)lua_tostring(L, 2);
4148
 
  {
4149
 
    if (arg1->description) free((char *)arg1->description);
4150
 
    if (arg2) {
4151
 
      arg1->description = (char *) malloc(strlen((const char *)arg2)+1);
4152
 
      strcpy((char *)arg1->description, (const char *)arg2);
4153
 
    } else {
4154
 
      arg1->description = 0;
4155
 
    }
4156
 
  }
4157
 
  
4158
 
  return SWIG_arg;
4159
 
  
4160
 
  if(0) SWIG_fail;
4161
 
  
4162
 
fail:
4163
 
  lua_error(L);
4164
 
  return SWIG_arg;
4165
 
}
4166
 
 
4167
 
 
4168
 
static int _wrap_item_description_get(lua_State* L) {
4169
 
  int SWIG_arg = 0;
4170
 
  struct item *arg1 = (struct item *) 0 ;
4171
 
  char *result = 0 ;
4172
 
  
4173
 
  SWIG_check_num_args("description",1,1)
4174
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("description",1,"struct item *");
4175
 
  
4176
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4177
 
    SWIG_fail_ptr("item_description_get",1,SWIGTYPE_p_item);
4178
 
  }
4179
 
  
4180
 
  result = (char *) ((arg1)->description);
4181
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4182
 
  return SWIG_arg;
4183
 
  
4184
 
  if(0) SWIG_fail;
4185
 
  
4186
 
fail:
4187
 
  lua_error(L);
4188
 
  return SWIG_arg;
4189
 
}
4190
 
 
4191
 
 
4192
 
static int _wrap_item_metadata_set(lua_State* L) {
4193
 
  int SWIG_arg = 0;
4194
 
  struct item *arg1 = (struct item *) 0 ;
4195
 
  GSList *arg2 = (GSList *) 0 ;
4196
 
  
4197
 
  SWIG_check_num_args("metadata",2,2)
4198
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("metadata",1,"struct item *");
4199
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("metadata",2,"GSList *");
4200
 
  
4201
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4202
 
    SWIG_fail_ptr("item_metadata_set",1,SWIGTYPE_p_item);
4203
 
  }
4204
 
  
4205
 
  
4206
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GSList,SWIG_POINTER_DISOWN))){
4207
 
    SWIG_fail_ptr("item_metadata_set",2,SWIGTYPE_p_GSList);
4208
 
  }
4209
 
  
4210
 
  if (arg1) (arg1)->metadata = arg2;
4211
 
  
4212
 
  return SWIG_arg;
4213
 
  
4214
 
  if(0) SWIG_fail;
4215
 
  
4216
 
fail:
4217
 
  lua_error(L);
4218
 
  return SWIG_arg;
4219
 
}
4220
 
 
4221
 
 
4222
 
static int _wrap_item_metadata_get(lua_State* L) {
4223
 
  int SWIG_arg = 0;
4224
 
  struct item *arg1 = (struct item *) 0 ;
4225
 
  GSList *result = 0 ;
4226
 
  
4227
 
  SWIG_check_num_args("metadata",1,1)
4228
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("metadata",1,"struct item *");
4229
 
  
4230
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4231
 
    SWIG_fail_ptr("item_metadata_get",1,SWIGTYPE_p_item);
4232
 
  }
4233
 
  
4234
 
  result = (GSList *) ((arg1)->metadata);
4235
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GSList,0); SWIG_arg++; 
4236
 
  return SWIG_arg;
4237
 
  
4238
 
  if(0) SWIG_fail;
4239
 
  
4240
 
fail:
4241
 
  lua_error(L);
4242
 
  return SWIG_arg;
4243
 
}
4244
 
 
4245
 
 
4246
 
static int _wrap_item_tmpdata_set(lua_State* L) {
4247
 
  int SWIG_arg = 0;
4248
 
  struct item *arg1 = (struct item *) 0 ;
4249
 
  GHashTable *arg2 = (GHashTable *) 0 ;
4250
 
  
4251
 
  SWIG_check_num_args("tmpdata",2,2)
4252
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tmpdata",1,"struct item *");
4253
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("tmpdata",2,"GHashTable *");
4254
 
  
4255
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4256
 
    SWIG_fail_ptr("item_tmpdata_set",1,SWIGTYPE_p_item);
4257
 
  }
4258
 
  
4259
 
  
4260
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GHashTable,SWIG_POINTER_DISOWN))){
4261
 
    SWIG_fail_ptr("item_tmpdata_set",2,SWIGTYPE_p_GHashTable);
4262
 
  }
4263
 
  
4264
 
  if (arg1) (arg1)->tmpdata = arg2;
4265
 
  
4266
 
  return SWIG_arg;
4267
 
  
4268
 
  if(0) SWIG_fail;
4269
 
  
4270
 
fail:
4271
 
  lua_error(L);
4272
 
  return SWIG_arg;
4273
 
}
4274
 
 
4275
 
 
4276
 
static int _wrap_item_tmpdata_get(lua_State* L) {
4277
 
  int SWIG_arg = 0;
4278
 
  struct item *arg1 = (struct item *) 0 ;
4279
 
  GHashTable *result = 0 ;
4280
 
  
4281
 
  SWIG_check_num_args("tmpdata",1,1)
4282
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tmpdata",1,"struct item *");
4283
 
  
4284
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4285
 
    SWIG_fail_ptr("item_tmpdata_get",1,SWIGTYPE_p_item);
4286
 
  }
4287
 
  
4288
 
  result = (GHashTable *) ((arg1)->tmpdata);
4289
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GHashTable,0); SWIG_arg++; 
4290
 
  return SWIG_arg;
4291
 
  
4292
 
  if(0) SWIG_fail;
4293
 
  
4294
 
fail:
4295
 
  lua_error(L);
4296
 
  return SWIG_arg;
4297
 
}
4298
 
 
4299
 
 
4300
 
static int _wrap_item_time_set(lua_State* L) {
4301
 
  int SWIG_arg = 0;
4302
 
  struct item *arg1 = (struct item *) 0 ;
4303
 
  time_t arg2 ;
4304
 
  time_t *argp2 ;
4305
 
  
4306
 
  SWIG_check_num_args("time",2,2)
4307
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("time",1,"struct item *");
4308
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("time",2,"time_t");
4309
 
  
4310
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4311
 
    SWIG_fail_ptr("item_time_set",1,SWIGTYPE_p_item);
4312
 
  }
4313
 
  
4314
 
  
4315
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_time_t,0))){
4316
 
    SWIG_fail_ptr("item_time_set",2,SWIGTYPE_p_time_t);
4317
 
  }
4318
 
  arg2 = *argp2;
4319
 
  
4320
 
  if (arg1) (arg1)->time = arg2;
4321
 
  
4322
 
  return SWIG_arg;
4323
 
  
4324
 
  if(0) SWIG_fail;
4325
 
  
4326
 
fail:
4327
 
  lua_error(L);
4328
 
  return SWIG_arg;
4329
 
}
4330
 
 
4331
 
 
4332
 
static int _wrap_item_time_get(lua_State* L) {
4333
 
  int SWIG_arg = 0;
4334
 
  struct item *arg1 = (struct item *) 0 ;
4335
 
  time_t result;
4336
 
  
4337
 
  SWIG_check_num_args("time",1,1)
4338
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("time",1,"struct item *");
4339
 
  
4340
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4341
 
    SWIG_fail_ptr("item_time_get",1,SWIGTYPE_p_item);
4342
 
  }
4343
 
  
4344
 
  result =  ((arg1)->time);
4345
 
  {
4346
 
    time_t * resultptr;
4347
 
    resultptr = (time_t *) malloc(sizeof(time_t));
4348
 
    memmove(resultptr, &result, sizeof(time_t));
4349
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_time_t,1); SWIG_arg++;
4350
 
  }
4351
 
  return SWIG_arg;
4352
 
  
4353
 
  if(0) SWIG_fail;
4354
 
  
4355
 
fail:
4356
 
  lua_error(L);
4357
 
  return SWIG_arg;
4358
 
}
4359
 
 
4360
 
 
4361
 
static int _wrap_item_commentFeedId_set(lua_State* L) {
4362
 
  int SWIG_arg = 0;
4363
 
  struct item *arg1 = (struct item *) 0 ;
4364
 
  char *arg2 = (char *) 0 ;
4365
 
  
4366
 
  SWIG_check_num_args("commentFeedId",2,2)
4367
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("commentFeedId",1,"struct item *");
4368
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("commentFeedId",2,"char *");
4369
 
  
4370
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4371
 
    SWIG_fail_ptr("item_commentFeedId_set",1,SWIGTYPE_p_item);
4372
 
  }
4373
 
  
4374
 
  arg2 = (char *)lua_tostring(L, 2);
4375
 
  {
4376
 
    if (arg1->commentFeedId) free((char *)arg1->commentFeedId);
4377
 
    if (arg2) {
4378
 
      arg1->commentFeedId = (char *) malloc(strlen((const char *)arg2)+1);
4379
 
      strcpy((char *)arg1->commentFeedId, (const char *)arg2);
4380
 
    } else {
4381
 
      arg1->commentFeedId = 0;
4382
 
    }
4383
 
  }
4384
 
  
4385
 
  return SWIG_arg;
4386
 
  
4387
 
  if(0) SWIG_fail;
4388
 
  
4389
 
fail:
4390
 
  lua_error(L);
4391
 
  return SWIG_arg;
4392
 
}
4393
 
 
4394
 
 
4395
 
static int _wrap_item_commentFeedId_get(lua_State* L) {
4396
 
  int SWIG_arg = 0;
4397
 
  struct item *arg1 = (struct item *) 0 ;
4398
 
  char *result = 0 ;
4399
 
  
4400
 
  SWIG_check_num_args("commentFeedId",1,1)
4401
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("commentFeedId",1,"struct item *");
4402
 
  
4403
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4404
 
    SWIG_fail_ptr("item_commentFeedId_get",1,SWIGTYPE_p_item);
4405
 
  }
4406
 
  
4407
 
  result = (char *) ((arg1)->commentFeedId);
4408
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4409
 
  return SWIG_arg;
4410
 
  
4411
 
  if(0) SWIG_fail;
4412
 
  
4413
 
fail:
4414
 
  lua_error(L);
4415
 
  return SWIG_arg;
4416
 
}
4417
 
 
4418
 
 
4419
 
static int _wrap_item_parentItemId_set(lua_State* L) {
4420
 
  int SWIG_arg = 0;
4421
 
  struct item *arg1 = (struct item *) 0 ;
4422
 
  gulong arg2 ;
4423
 
  gulong *argp2 ;
4424
 
  
4425
 
  SWIG_check_num_args("parentItemId",2,2)
4426
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentItemId",1,"struct item *");
4427
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("parentItemId",2,"gulong");
4428
 
  
4429
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4430
 
    SWIG_fail_ptr("item_parentItemId_set",1,SWIGTYPE_p_item);
4431
 
  }
4432
 
  
4433
 
  
4434
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gulong,0))){
4435
 
    SWIG_fail_ptr("item_parentItemId_set",2,SWIGTYPE_p_gulong);
4436
 
  }
4437
 
  arg2 = *argp2;
4438
 
  
4439
 
  if (arg1) (arg1)->parentItemId = arg2;
4440
 
  
4441
 
  return SWIG_arg;
4442
 
  
4443
 
  if(0) SWIG_fail;
4444
 
  
4445
 
fail:
4446
 
  lua_error(L);
4447
 
  return SWIG_arg;
4448
 
}
4449
 
 
4450
 
 
4451
 
static int _wrap_item_parentItemId_get(lua_State* L) {
4452
 
  int SWIG_arg = 0;
4453
 
  struct item *arg1 = (struct item *) 0 ;
4454
 
  gulong result;
4455
 
  
4456
 
  SWIG_check_num_args("parentItemId",1,1)
4457
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentItemId",1,"struct item *");
4458
 
  
4459
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4460
 
    SWIG_fail_ptr("item_parentItemId_get",1,SWIGTYPE_p_item);
4461
 
  }
4462
 
  
4463
 
  result =  ((arg1)->parentItemId);
4464
 
  {
4465
 
    gulong * resultptr;
4466
 
    resultptr = (gulong *) malloc(sizeof(gulong));
4467
 
    memmove(resultptr, &result, sizeof(gulong));
4468
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gulong,1); SWIG_arg++;
4469
 
  }
4470
 
  return SWIG_arg;
4471
 
  
4472
 
  if(0) SWIG_fail;
4473
 
  
4474
 
fail:
4475
 
  lua_error(L);
4476
 
  return SWIG_arg;
4477
 
}
4478
 
 
4479
 
 
4480
 
static int _wrap_item_isComment_set(lua_State* L) {
4481
 
  int SWIG_arg = 0;
4482
 
  struct item *arg1 = (struct item *) 0 ;
4483
 
  int arg2 ;
4484
 
  
4485
 
  SWIG_check_num_args("isComment",2,2)
4486
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("isComment",1,"struct item *");
4487
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("isComment",2,"int");
4488
 
  
4489
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4490
 
    SWIG_fail_ptr("item_isComment_set",1,SWIGTYPE_p_item);
4491
 
  }
4492
 
  
4493
 
  arg2 = (int)lua_tonumber(L, 2);
4494
 
  if (arg1) (arg1)->isComment = arg2;
4495
 
  
4496
 
  return SWIG_arg;
4497
 
  
4498
 
  if(0) SWIG_fail;
4499
 
  
4500
 
fail:
4501
 
  lua_error(L);
4502
 
  return SWIG_arg;
4503
 
}
4504
 
 
4505
 
 
4506
 
static int _wrap_item_isComment_get(lua_State* L) {
4507
 
  int SWIG_arg = 0;
4508
 
  struct item *arg1 = (struct item *) 0 ;
4509
 
  int result;
4510
 
  
4511
 
  SWIG_check_num_args("isComment",1,1)
4512
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("isComment",1,"struct item *");
4513
 
  
4514
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4515
 
    SWIG_fail_ptr("item_isComment_get",1,SWIGTYPE_p_item);
4516
 
  }
4517
 
  
4518
 
  result = (int) ((arg1)->isComment);
4519
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4520
 
  return SWIG_arg;
4521
 
  
4522
 
  if(0) SWIG_fail;
4523
 
  
4524
 
fail:
4525
 
  lua_error(L);
4526
 
  return SWIG_arg;
4527
 
}
4528
 
 
4529
 
 
4530
 
static int _wrap_item_nodeId_set(lua_State* L) {
4531
 
  int SWIG_arg = 0;
4532
 
  struct item *arg1 = (struct item *) 0 ;
4533
 
  char *arg2 = (char *) 0 ;
4534
 
  
4535
 
  SWIG_check_num_args("nodeId",2,2)
4536
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("nodeId",1,"struct item *");
4537
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("nodeId",2,"char *");
4538
 
  
4539
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4540
 
    SWIG_fail_ptr("item_nodeId_set",1,SWIGTYPE_p_item);
4541
 
  }
4542
 
  
4543
 
  arg2 = (char *)lua_tostring(L, 2);
4544
 
  {
4545
 
    if (arg1->nodeId) free((char *)arg1->nodeId);
4546
 
    if (arg2) {
4547
 
      arg1->nodeId = (char *) malloc(strlen((const char *)arg2)+1);
4548
 
      strcpy((char *)arg1->nodeId, (const char *)arg2);
4549
 
    } else {
4550
 
      arg1->nodeId = 0;
4551
 
    }
4552
 
  }
4553
 
  
4554
 
  return SWIG_arg;
4555
 
  
4556
 
  if(0) SWIG_fail;
4557
 
  
4558
 
fail:
4559
 
  lua_error(L);
4560
 
  return SWIG_arg;
4561
 
}
4562
 
 
4563
 
 
4564
 
static int _wrap_item_nodeId_get(lua_State* L) {
4565
 
  int SWIG_arg = 0;
4566
 
  struct item *arg1 = (struct item *) 0 ;
4567
 
  char *result = 0 ;
4568
 
  
4569
 
  SWIG_check_num_args("nodeId",1,1)
4570
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("nodeId",1,"struct item *");
4571
 
  
4572
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4573
 
    SWIG_fail_ptr("item_nodeId_get",1,SWIGTYPE_p_item);
4574
 
  }
4575
 
  
4576
 
  result = (char *) ((arg1)->nodeId);
4577
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4578
 
  return SWIG_arg;
4579
 
  
4580
 
  if(0) SWIG_fail;
4581
 
  
4582
 
fail:
4583
 
  lua_error(L);
4584
 
  return SWIG_arg;
4585
 
}
4586
 
 
4587
 
 
4588
 
static int _wrap_item_parentNodeId_set(lua_State* L) {
4589
 
  int SWIG_arg = 0;
4590
 
  struct item *arg1 = (struct item *) 0 ;
4591
 
  char *arg2 = (char *) 0 ;
4592
 
  
4593
 
  SWIG_check_num_args("parentNodeId",2,2)
4594
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentNodeId",1,"struct item *");
4595
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("parentNodeId",2,"char *");
4596
 
  
4597
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4598
 
    SWIG_fail_ptr("item_parentNodeId_set",1,SWIGTYPE_p_item);
4599
 
  }
4600
 
  
4601
 
  arg2 = (char *)lua_tostring(L, 2);
4602
 
  {
4603
 
    if (arg1->parentNodeId) free((char *)arg1->parentNodeId);
4604
 
    if (arg2) {
4605
 
      arg1->parentNodeId = (char *) malloc(strlen((const char *)arg2)+1);
4606
 
      strcpy((char *)arg1->parentNodeId, (const char *)arg2);
4607
 
    } else {
4608
 
      arg1->parentNodeId = 0;
4609
 
    }
4610
 
  }
4611
 
  
4612
 
  return SWIG_arg;
4613
 
  
4614
 
  if(0) SWIG_fail;
4615
 
  
4616
 
fail:
4617
 
  lua_error(L);
4618
 
  return SWIG_arg;
4619
 
}
4620
 
 
4621
 
 
4622
 
static int _wrap_item_parentNodeId_get(lua_State* L) {
4623
 
  int SWIG_arg = 0;
4624
 
  struct item *arg1 = (struct item *) 0 ;
4625
 
  char *result = 0 ;
4626
 
  
4627
 
  SWIG_check_num_args("parentNodeId",1,1)
4628
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentNodeId",1,"struct item *");
4629
 
  
4630
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4631
 
    SWIG_fail_ptr("item_parentNodeId_get",1,SWIGTYPE_p_item);
4632
 
  }
4633
 
  
4634
 
  result = (char *) ((arg1)->parentNodeId);
4635
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4636
 
  return SWIG_arg;
4637
 
  
4638
 
  if(0) SWIG_fail;
4639
 
  
4640
 
fail:
4641
 
  lua_error(L);
4642
 
  return SWIG_arg;
4643
 
}
4644
 
 
4645
 
 
4646
 
static int _wrap_item_sourceNr_set(lua_State* L) {
4647
 
  int SWIG_arg = 0;
4648
 
  struct item *arg1 = (struct item *) 0 ;
4649
 
  gulong arg2 ;
4650
 
  gulong *argp2 ;
4651
 
  
4652
 
  SWIG_check_num_args("sourceNr",2,2)
4653
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sourceNr",1,"struct item *");
4654
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("sourceNr",2,"gulong");
4655
 
  
4656
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4657
 
    SWIG_fail_ptr("item_sourceNr_set",1,SWIGTYPE_p_item);
4658
 
  }
4659
 
  
4660
 
  
4661
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gulong,0))){
4662
 
    SWIG_fail_ptr("item_sourceNr_set",2,SWIGTYPE_p_gulong);
4663
 
  }
4664
 
  arg2 = *argp2;
4665
 
  
4666
 
  if (arg1) (arg1)->sourceNr = arg2;
4667
 
  
4668
 
  return SWIG_arg;
4669
 
  
4670
 
  if(0) SWIG_fail;
4671
 
  
4672
 
fail:
4673
 
  lua_error(L);
4674
 
  return SWIG_arg;
4675
 
}
4676
 
 
4677
 
 
4678
 
static int _wrap_item_sourceNr_get(lua_State* L) {
4679
 
  int SWIG_arg = 0;
4680
 
  struct item *arg1 = (struct item *) 0 ;
4681
 
  gulong result;
4682
 
  
4683
 
  SWIG_check_num_args("sourceNr",1,1)
4684
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sourceNr",1,"struct item *");
4685
 
  
4686
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4687
 
    SWIG_fail_ptr("item_sourceNr_get",1,SWIGTYPE_p_item);
4688
 
  }
4689
 
  
4690
 
  result =  ((arg1)->sourceNr);
4691
 
  {
4692
 
    gulong * resultptr;
4693
 
    resultptr = (gulong *) malloc(sizeof(gulong));
4694
 
    memmove(resultptr, &result, sizeof(gulong));
4695
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gulong,1); SWIG_arg++;
4696
 
  }
4697
 
  return SWIG_arg;
4698
 
  
4699
 
  if(0) SWIG_fail;
4700
 
  
4701
 
fail:
4702
 
  lua_error(L);
4703
 
  return SWIG_arg;
4704
 
}
4705
 
 
4706
 
 
4707
 
static int _wrap_new_item(lua_State* L) {
4708
 
  int SWIG_arg = 0;
4709
 
  struct item *result = 0 ;
4710
 
  
4711
 
  SWIG_check_num_args("item::item",0,0)
4712
 
  result = (struct item *)calloc(1, sizeof(struct item));
4713
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,1); SWIG_arg++; 
4714
 
  return SWIG_arg;
4715
 
  
4716
 
  if(0) SWIG_fail;
4717
 
  
4718
 
fail:
4719
 
  lua_error(L);
4720
 
  return SWIG_arg;
4721
 
}
4722
 
 
4723
 
 
4724
 
static void swig_delete_item(void *obj) {
4725
 
struct item *arg1 = (struct item *) obj;
4726
 
free((char *) arg1);
4727
 
}
4728
 
static swig_lua_method swig_item_methods[] = {
4729
 
    {0,0}
4730
 
};
4731
 
static swig_lua_attribute swig_item_attributes[] = {
4732
 
    { "id", _wrap_item_id_get, _wrap_item_id_set},
4733
 
    { "readStatus", _wrap_item_readStatus_get, _wrap_item_readStatus_set},
4734
 
    { "popupStatus", _wrap_item_popupStatus_get, _wrap_item_popupStatus_set},
4735
 
    { "updateStatus", _wrap_item_updateStatus_get, _wrap_item_updateStatus_set},
4736
 
    { "flagStatus", _wrap_item_flagStatus_get, _wrap_item_flagStatus_set},
4737
 
    { "hasEnclosure", _wrap_item_hasEnclosure_get, _wrap_item_hasEnclosure_set},
4738
 
    { "title", _wrap_item_title_get, _wrap_item_title_set},
4739
 
    { "source", _wrap_item_source_get, _wrap_item_source_set},
4740
 
    { "sourceId", _wrap_item_sourceId_get, _wrap_item_sourceId_set},
4741
 
    { "validGuid", _wrap_item_validGuid_get, _wrap_item_validGuid_set},
4742
 
    { "description", _wrap_item_description_get, _wrap_item_description_set},
4743
 
    { "metadata", _wrap_item_metadata_get, _wrap_item_metadata_set},
4744
 
    { "tmpdata", _wrap_item_tmpdata_get, _wrap_item_tmpdata_set},
4745
 
    { "time", _wrap_item_time_get, _wrap_item_time_set},
4746
 
    { "commentFeedId", _wrap_item_commentFeedId_get, _wrap_item_commentFeedId_set},
4747
 
    { "parentItemId", _wrap_item_parentItemId_get, _wrap_item_parentItemId_set},
4748
 
    { "isComment", _wrap_item_isComment_get, _wrap_item_isComment_set},
4749
 
    { "nodeId", _wrap_item_nodeId_get, _wrap_item_nodeId_set},
4750
 
    { "parentNodeId", _wrap_item_parentNodeId_get, _wrap_item_parentNodeId_set},
4751
 
    { "sourceNr", _wrap_item_sourceNr_get, _wrap_item_sourceNr_set},
4752
 
    {0,0,0}
4753
 
};
4754
 
static swig_lua_class *swig_item_bases[] = {0};
4755
 
static const char *swig_item_base_names[] = {0};
4756
 
static swig_lua_class _wrap_class_item = { "item", &SWIGTYPE_p_item,_wrap_new_item, swig_delete_item, swig_item_methods, swig_item_attributes, swig_item_bases, swig_item_base_names };
4757
 
 
4758
 
static int _wrap_item_new(lua_State* L) {
4759
 
  int SWIG_arg = 0;
4760
 
  itemPtr result;
4761
 
  
4762
 
  SWIG_check_num_args("item_new",0,0)
4763
 
  result = (itemPtr)item_new();
4764
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,0); SWIG_arg++; 
4765
 
  return SWIG_arg;
4766
 
  
4767
 
  if(0) SWIG_fail;
4768
 
  
4769
 
fail:
4770
 
  lua_error(L);
4771
 
  return SWIG_arg;
4772
 
}
4773
 
 
4774
 
 
4775
 
static int _wrap_item_load(lua_State* L) {
4776
 
  int SWIG_arg = 0;
4777
 
  gulong arg1 ;
4778
 
  gulong *argp1 ;
4779
 
  itemPtr result;
4780
 
  
4781
 
  SWIG_check_num_args("item_load",1,1)
4782
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("item_load",1,"gulong");
4783
 
  
4784
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_gulong,0))){
4785
 
    SWIG_fail_ptr("item_load",1,SWIGTYPE_p_gulong);
4786
 
  }
4787
 
  arg1 = *argp1;
4788
 
  
4789
 
  result = (itemPtr)item_load(arg1);
4790
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,0); SWIG_arg++; 
4791
 
  return SWIG_arg;
4792
 
  
4793
 
  if(0) SWIG_fail;
4794
 
  
4795
 
fail:
4796
 
  lua_error(L);
4797
 
  return SWIG_arg;
4798
 
}
4799
 
 
4800
 
 
4801
 
static int _wrap_item_copy(lua_State* L) {
4802
 
  int SWIG_arg = 0;
4803
 
  itemPtr arg1 = (itemPtr) 0 ;
4804
 
  itemPtr result;
4805
 
  
4806
 
  SWIG_check_num_args("item_copy",1,1)
4807
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_copy",1,"itemPtr");
4808
 
  
4809
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4810
 
    SWIG_fail_ptr("item_copy",1,SWIGTYPE_p_item);
4811
 
  }
4812
 
  
4813
 
  result = (itemPtr)item_copy(arg1);
4814
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,0); SWIG_arg++; 
4815
 
  return SWIG_arg;
4816
 
  
4817
 
  if(0) SWIG_fail;
4818
 
  
4819
 
fail:
4820
 
  lua_error(L);
4821
 
  return SWIG_arg;
4822
 
}
4823
 
 
4824
 
 
4825
 
static int _wrap_item_get_base_url(lua_State* L) {
4826
 
  int SWIG_arg = 0;
4827
 
  itemPtr arg1 = (itemPtr) 0 ;
4828
 
  char *result = 0 ;
4829
 
  
4830
 
  SWIG_check_num_args("item_get_base_url",1,1)
4831
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_get_base_url",1,"itemPtr");
4832
 
  
4833
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4834
 
    SWIG_fail_ptr("item_get_base_url",1,SWIGTYPE_p_item);
4835
 
  }
4836
 
  
4837
 
  result = (char *)item_get_base_url(arg1);
4838
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4839
 
  return SWIG_arg;
4840
 
  
4841
 
  if(0) SWIG_fail;
4842
 
  
4843
 
fail:
4844
 
  lua_error(L);
4845
 
  return SWIG_arg;
4846
 
}
4847
 
 
4848
 
 
4849
 
static int _wrap_item_unload(lua_State* L) {
4850
 
  int SWIG_arg = 0;
4851
 
  itemPtr arg1 = (itemPtr) 0 ;
4852
 
  
4853
 
  SWIG_check_num_args("item_unload",1,1)
4854
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_unload",1,"itemPtr");
4855
 
  
4856
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4857
 
    SWIG_fail_ptr("item_unload",1,SWIGTYPE_p_item);
4858
 
  }
4859
 
  
4860
 
  item_unload(arg1);
4861
 
  
4862
 
  return SWIG_arg;
4863
 
  
4864
 
  if(0) SWIG_fail;
4865
 
  
4866
 
fail:
4867
 
  lua_error(L);
4868
 
  return SWIG_arg;
4869
 
}
4870
 
 
4871
 
 
4872
 
static int _wrap_item_get_id(lua_State* L) {
4873
 
  int SWIG_arg = 0;
4874
 
  itemPtr arg1 = (itemPtr) 0 ;
4875
 
  char *result = 0 ;
4876
 
  
4877
 
  SWIG_check_num_args("item_get_id",1,1)
4878
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_get_id",1,"itemPtr");
4879
 
  
4880
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4881
 
    SWIG_fail_ptr("item_get_id",1,SWIGTYPE_p_item);
4882
 
  }
4883
 
  
4884
 
  result = (char *)item_get_id(arg1);
4885
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4886
 
  return SWIG_arg;
4887
 
  
4888
 
  if(0) SWIG_fail;
4889
 
  
4890
 
fail:
4891
 
  lua_error(L);
4892
 
  return SWIG_arg;
4893
 
}
4894
 
 
4895
 
 
4896
 
static int _wrap_item_get_title(lua_State* L) {
4897
 
  int SWIG_arg = 0;
4898
 
  itemPtr arg1 = (itemPtr) 0 ;
4899
 
  char *result = 0 ;
4900
 
  
4901
 
  SWIG_check_num_args("item_get_title",1,1)
4902
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_get_title",1,"itemPtr");
4903
 
  
4904
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4905
 
    SWIG_fail_ptr("item_get_title",1,SWIGTYPE_p_item);
4906
 
  }
4907
 
  
4908
 
  result = (char *)item_get_title(arg1);
4909
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4910
 
  return SWIG_arg;
4911
 
  
4912
 
  if(0) SWIG_fail;
4913
 
  
4914
 
fail:
4915
 
  lua_error(L);
4916
 
  return SWIG_arg;
4917
 
}
4918
 
 
4919
 
 
4920
 
static int _wrap_item_get_description(lua_State* L) {
4921
 
  int SWIG_arg = 0;
4922
 
  itemPtr arg1 = (itemPtr) 0 ;
4923
 
  char *result = 0 ;
4924
 
  
4925
 
  SWIG_check_num_args("item_get_description",1,1)
4926
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_get_description",1,"itemPtr");
4927
 
  
4928
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4929
 
    SWIG_fail_ptr("item_get_description",1,SWIGTYPE_p_item);
4930
 
  }
4931
 
  
4932
 
  result = (char *)item_get_description(arg1);
4933
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4934
 
  return SWIG_arg;
4935
 
  
4936
 
  if(0) SWIG_fail;
4937
 
  
4938
 
fail:
4939
 
  lua_error(L);
4940
 
  return SWIG_arg;
4941
 
}
4942
 
 
4943
 
 
4944
 
static int _wrap_item_get_source(lua_State* L) {
4945
 
  int SWIG_arg = 0;
4946
 
  itemPtr arg1 = (itemPtr) 0 ;
4947
 
  char *result = 0 ;
4948
 
  
4949
 
  SWIG_check_num_args("item_get_source",1,1)
4950
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_get_source",1,"itemPtr");
4951
 
  
4952
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4953
 
    SWIG_fail_ptr("item_get_source",1,SWIGTYPE_p_item);
4954
 
  }
4955
 
  
4956
 
  result = (char *)item_get_source(arg1);
4957
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
4958
 
  return SWIG_arg;
4959
 
  
4960
 
  if(0) SWIG_fail;
4961
 
  
4962
 
fail:
4963
 
  lua_error(L);
4964
 
  return SWIG_arg;
4965
 
}
4966
 
 
4967
 
 
4968
 
static int _wrap_item_set_title(lua_State* L) {
4969
 
  int SWIG_arg = 0;
4970
 
  itemPtr arg1 = (itemPtr) 0 ;
4971
 
  char *arg2 = (char *) 0 ;
4972
 
  
4973
 
  SWIG_check_num_args("item_set_title",2,2)
4974
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_title",1,"itemPtr");
4975
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("item_set_title",2,"char const *");
4976
 
  
4977
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
4978
 
    SWIG_fail_ptr("item_set_title",1,SWIGTYPE_p_item);
4979
 
  }
4980
 
  
4981
 
  arg2 = (char *)lua_tostring(L, 2);
4982
 
  item_set_title(arg1,(char const *)arg2);
4983
 
  
4984
 
  return SWIG_arg;
4985
 
  
4986
 
  if(0) SWIG_fail;
4987
 
  
4988
 
fail:
4989
 
  lua_error(L);
4990
 
  return SWIG_arg;
4991
 
}
4992
 
 
4993
 
 
4994
 
static int _wrap_item_set_description(lua_State* L) {
4995
 
  int SWIG_arg = 0;
4996
 
  itemPtr arg1 = (itemPtr) 0 ;
4997
 
  char *arg2 = (char *) 0 ;
4998
 
  
4999
 
  SWIG_check_num_args("item_set_description",2,2)
5000
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_description",1,"itemPtr");
5001
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("item_set_description",2,"char const *");
5002
 
  
5003
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5004
 
    SWIG_fail_ptr("item_set_description",1,SWIGTYPE_p_item);
5005
 
  }
5006
 
  
5007
 
  arg2 = (char *)lua_tostring(L, 2);
5008
 
  item_set_description(arg1,(char const *)arg2);
5009
 
  
5010
 
  return SWIG_arg;
5011
 
  
5012
 
  if(0) SWIG_fail;
5013
 
  
5014
 
fail:
5015
 
  lua_error(L);
5016
 
  return SWIG_arg;
5017
 
}
5018
 
 
5019
 
 
5020
 
static int _wrap_item_set_source(lua_State* L) {
5021
 
  int SWIG_arg = 0;
5022
 
  itemPtr arg1 = (itemPtr) 0 ;
5023
 
  char *arg2 = (char *) 0 ;
5024
 
  
5025
 
  SWIG_check_num_args("item_set_source",2,2)
5026
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_source",1,"itemPtr");
5027
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("item_set_source",2,"char const *");
5028
 
  
5029
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5030
 
    SWIG_fail_ptr("item_set_source",1,SWIGTYPE_p_item);
5031
 
  }
5032
 
  
5033
 
  arg2 = (char *)lua_tostring(L, 2);
5034
 
  item_set_source(arg1,(char const *)arg2);
5035
 
  
5036
 
  return SWIG_arg;
5037
 
  
5038
 
  if(0) SWIG_fail;
5039
 
  
5040
 
fail:
5041
 
  lua_error(L);
5042
 
  return SWIG_arg;
5043
 
}
5044
 
 
5045
 
 
5046
 
static int _wrap_item_set_id(lua_State* L) {
5047
 
  int SWIG_arg = 0;
5048
 
  itemPtr arg1 = (itemPtr) 0 ;
5049
 
  char *arg2 = (char *) 0 ;
5050
 
  
5051
 
  SWIG_check_num_args("item_set_id",2,2)
5052
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_id",1,"itemPtr");
5053
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("item_set_id",2,"char const *");
5054
 
  
5055
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5056
 
    SWIG_fail_ptr("item_set_id",1,SWIGTYPE_p_item);
5057
 
  }
5058
 
  
5059
 
  arg2 = (char *)lua_tostring(L, 2);
5060
 
  item_set_id(arg1,(char const *)arg2);
5061
 
  
5062
 
  return SWIG_arg;
5063
 
  
5064
 
  if(0) SWIG_fail;
5065
 
  
5066
 
fail:
5067
 
  lua_error(L);
5068
 
  return SWIG_arg;
5069
 
}
5070
 
 
5071
 
 
5072
 
static int _wrap_item_to_xml(lua_State* L) {
5073
 
  int SWIG_arg = 0;
5074
 
  itemPtr arg1 = (itemPtr) 0 ;
5075
 
  xmlNodePtr arg2 ;
5076
 
  xmlNodePtr *argp2 ;
5077
 
  
5078
 
  SWIG_check_num_args("item_to_xml",2,2)
5079
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_to_xml",1,"itemPtr");
5080
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("item_to_xml",2,"xmlNodePtr");
5081
 
  
5082
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5083
 
    SWIG_fail_ptr("item_to_xml",1,SWIGTYPE_p_item);
5084
 
  }
5085
 
  
5086
 
  
5087
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_xmlNodePtr,0))){
5088
 
    SWIG_fail_ptr("item_to_xml",2,SWIGTYPE_p_xmlNodePtr);
5089
 
  }
5090
 
  arg2 = *argp2;
5091
 
  
5092
 
  item_to_xml(arg1,arg2);
5093
 
  
5094
 
  return SWIG_arg;
5095
 
  
5096
 
  if(0) SWIG_fail;
5097
 
  
5098
 
fail:
5099
 
  lua_error(L);
5100
 
  return SWIG_arg;
5101
 
}
5102
 
 
5103
 
 
5104
 
static int _wrap_item_set_flag_state(lua_State* L) {
5105
 
  int SWIG_arg = 0;
5106
 
  itemPtr arg1 = (itemPtr) 0 ;
5107
 
  int arg2 ;
5108
 
  
5109
 
  SWIG_check_num_args("item_set_flag_state",2,2)
5110
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_flag_state",1,"itemPtr");
5111
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("item_set_flag_state",2,"int");
5112
 
  
5113
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5114
 
    SWIG_fail_ptr("item_set_flag_state",1,SWIGTYPE_p_item);
5115
 
  }
5116
 
  
5117
 
  arg2 = (int)lua_tonumber(L, 2);
5118
 
  item_set_flag_state(arg1,arg2);
5119
 
  
5120
 
  return SWIG_arg;
5121
 
  
5122
 
  if(0) SWIG_fail;
5123
 
  
5124
 
fail:
5125
 
  lua_error(L);
5126
 
  return SWIG_arg;
5127
 
}
5128
 
 
5129
 
 
5130
 
static int _wrap_item_flag_state_changed(lua_State* L) {
5131
 
  int SWIG_arg = 0;
5132
 
  itemPtr arg1 = (itemPtr) 0 ;
5133
 
  int arg2 ;
5134
 
  
5135
 
  SWIG_check_num_args("item_flag_state_changed",2,2)
5136
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_flag_state_changed",1,"itemPtr");
5137
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("item_flag_state_changed",2,"int");
5138
 
  
5139
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5140
 
    SWIG_fail_ptr("item_flag_state_changed",1,SWIGTYPE_p_item);
5141
 
  }
5142
 
  
5143
 
  arg2 = (int)lua_tonumber(L, 2);
5144
 
  item_flag_state_changed(arg1,arg2);
5145
 
  
5146
 
  return SWIG_arg;
5147
 
  
5148
 
  if(0) SWIG_fail;
5149
 
  
5150
 
fail:
5151
 
  lua_error(L);
5152
 
  return SWIG_arg;
5153
 
}
5154
 
 
5155
 
 
5156
 
static int _wrap_item_set_read_state(lua_State* L) {
5157
 
  int SWIG_arg = 0;
5158
 
  itemPtr arg1 = (itemPtr) 0 ;
5159
 
  int arg2 ;
5160
 
  
5161
 
  SWIG_check_num_args("item_set_read_state",2,2)
5162
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_set_read_state",1,"itemPtr");
5163
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("item_set_read_state",2,"int");
5164
 
  
5165
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5166
 
    SWIG_fail_ptr("item_set_read_state",1,SWIGTYPE_p_item);
5167
 
  }
5168
 
  
5169
 
  arg2 = (int)lua_tonumber(L, 2);
5170
 
  item_set_read_state(arg1,arg2);
5171
 
  
5172
 
  return SWIG_arg;
5173
 
  
5174
 
  if(0) SWIG_fail;
5175
 
  
5176
 
fail:
5177
 
  lua_error(L);
5178
 
  return SWIG_arg;
5179
 
}
5180
 
 
5181
 
 
5182
 
static int _wrap_item_read_state_changed(lua_State* L) {
5183
 
  int SWIG_arg = 0;
5184
 
  itemPtr arg1 = (itemPtr) 0 ;
5185
 
  int arg2 ;
5186
 
  
5187
 
  SWIG_check_num_args("item_read_state_changed",2,2)
5188
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("item_read_state_changed",1,"itemPtr");
5189
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("item_read_state_changed",2,"int");
5190
 
  
5191
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5192
 
    SWIG_fail_ptr("item_read_state_changed",1,SWIGTYPE_p_item);
5193
 
  }
5194
 
  
5195
 
  arg2 = (int)lua_tonumber(L, 2);
5196
 
  item_read_state_changed(arg1,arg2);
5197
 
  
5198
 
  return SWIG_arg;
5199
 
  
5200
 
  if(0) SWIG_fail;
5201
 
  
5202
 
fail:
5203
 
  lua_error(L);
5204
 
  return SWIG_arg;
5205
 
}
5206
 
 
5207
 
 
5208
 
static int _wrap_itemset_mark_read(lua_State* L) {
5209
 
  int SWIG_arg = 0;
5210
 
  nodePtr arg1 = (nodePtr) 0 ;
5211
 
  
5212
 
  SWIG_check_num_args("itemset_mark_read",1,1)
5213
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemset_mark_read",1,"nodePtr");
5214
 
  
5215
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
5216
 
    SWIG_fail_ptr("itemset_mark_read",1,SWIGTYPE_p_node);
5217
 
  }
5218
 
  
5219
 
  itemset_mark_read(arg1);
5220
 
  
5221
 
  return SWIG_arg;
5222
 
  
5223
 
  if(0) SWIG_fail;
5224
 
  
5225
 
fail:
5226
 
  lua_error(L);
5227
 
  return SWIG_arg;
5228
 
}
5229
 
 
5230
 
 
5231
 
static int _wrap_item_state_set_all_popup(lua_State* L) {
5232
 
  int SWIG_arg = 0;
5233
 
  char *arg1 = (char *) 0 ;
5234
 
  
5235
 
  SWIG_check_num_args("item_state_set_all_popup",1,1)
5236
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("item_state_set_all_popup",1,"char const *");
5237
 
  arg1 = (char *)lua_tostring(L, 1);
5238
 
  item_state_set_all_popup((char const *)arg1);
5239
 
  
5240
 
  return SWIG_arg;
5241
 
  
5242
 
  if(0) SWIG_fail;
5243
 
  
5244
 
fail:
5245
 
  lua_error(L);
5246
 
  return SWIG_arg;
5247
 
}
5248
 
 
5249
 
 
5250
 
static int _wrap_itemlist_free(lua_State* L) {
5251
 
  int SWIG_arg = 0;
5252
 
  
5253
 
  SWIG_check_num_args("itemlist_free",0,0)
5254
 
  itemlist_free();
5255
 
  
5256
 
  return SWIG_arg;
5257
 
  
5258
 
  if(0) SWIG_fail;
5259
 
  
5260
 
fail:
5261
 
  lua_error(L);
5262
 
  return SWIG_arg;
5263
 
}
5264
 
 
5265
 
 
5266
 
static int _wrap_itemlist_get_displayed_node(lua_State* L) {
5267
 
  int SWIG_arg = 0;
5268
 
  struct node *result = 0 ;
5269
 
  
5270
 
  SWIG_check_num_args("itemlist_get_displayed_node",0,0)
5271
 
  result = (struct node *)itemlist_get_displayed_node();
5272
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,0); SWIG_arg++; 
5273
 
  return SWIG_arg;
5274
 
  
5275
 
  if(0) SWIG_fail;
5276
 
  
5277
 
fail:
5278
 
  lua_error(L);
5279
 
  return SWIG_arg;
5280
 
}
5281
 
 
5282
 
 
5283
 
static int _wrap_itemlist_get_selected(lua_State* L) {
5284
 
  int SWIG_arg = 0;
5285
 
  itemPtr result;
5286
 
  
5287
 
  SWIG_check_num_args("itemlist_get_selected",0,0)
5288
 
  result = (itemPtr)itemlist_get_selected();
5289
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,0); SWIG_arg++; 
5290
 
  return SWIG_arg;
5291
 
  
5292
 
  if(0) SWIG_fail;
5293
 
  
5294
 
fail:
5295
 
  lua_error(L);
5296
 
  return SWIG_arg;
5297
 
}
5298
 
 
5299
 
 
5300
 
static int _wrap_itemlist_get_selected_id(lua_State* L) {
5301
 
  int SWIG_arg = 0;
5302
 
  gulong result;
5303
 
  
5304
 
  SWIG_check_num_args("itemlist_get_selected_id",0,0)
5305
 
  result = itemlist_get_selected_id();
5306
 
  {
5307
 
    gulong * resultptr;
5308
 
    resultptr = (gulong *) malloc(sizeof(gulong));
5309
 
    memmove(resultptr, &result, sizeof(gulong));
5310
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_gulong,1); SWIG_arg++;
5311
 
  }
5312
 
  return SWIG_arg;
5313
 
  
5314
 
  if(0) SWIG_fail;
5315
 
  
5316
 
fail:
5317
 
  lua_error(L);
5318
 
  return SWIG_arg;
5319
 
}
5320
 
 
5321
 
 
5322
 
static int _wrap_itemlist_merge_itemset(lua_State* L) {
5323
 
  int SWIG_arg = 0;
5324
 
  itemSetPtr arg1 ;
5325
 
  itemSetPtr *argp1 ;
5326
 
  
5327
 
  SWIG_check_num_args("itemlist_merge_itemset",1,1)
5328
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("itemlist_merge_itemset",1,"itemSetPtr");
5329
 
  
5330
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_itemSetPtr,0))){
5331
 
    SWIG_fail_ptr("itemlist_merge_itemset",1,SWIGTYPE_p_itemSetPtr);
5332
 
  }
5333
 
  arg1 = *argp1;
5334
 
  
5335
 
  itemlist_merge_itemset(arg1);
5336
 
  
5337
 
  return SWIG_arg;
5338
 
  
5339
 
  if(0) SWIG_fail;
5340
 
  
5341
 
fail:
5342
 
  lua_error(L);
5343
 
  return SWIG_arg;
5344
 
}
5345
 
 
5346
 
 
5347
 
static int _wrap_itemlist_load_search_result(lua_State* L) {
5348
 
  int SWIG_arg = 0;
5349
 
  itemSetPtr arg1 ;
5350
 
  itemSetPtr *argp1 ;
5351
 
  
5352
 
  SWIG_check_num_args("itemlist_load_search_result",1,1)
5353
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("itemlist_load_search_result",1,"itemSetPtr");
5354
 
  
5355
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_itemSetPtr,0))){
5356
 
    SWIG_fail_ptr("itemlist_load_search_result",1,SWIGTYPE_p_itemSetPtr);
5357
 
  }
5358
 
  arg1 = *argp1;
5359
 
  
5360
 
  itemlist_load_search_result(arg1);
5361
 
  
5362
 
  return SWIG_arg;
5363
 
  
5364
 
  if(0) SWIG_fail;
5365
 
  
5366
 
fail:
5367
 
  lua_error(L);
5368
 
  return SWIG_arg;
5369
 
}
5370
 
 
5371
 
 
5372
 
static int _wrap_itemlist_load(lua_State* L) {
5373
 
  int SWIG_arg = 0;
5374
 
  struct node *arg1 = (struct node *) 0 ;
5375
 
  
5376
 
  SWIG_check_num_args("itemlist_load",1,1)
5377
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_load",1,"struct node *");
5378
 
  
5379
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
5380
 
    SWIG_fail_ptr("itemlist_load",1,SWIGTYPE_p_node);
5381
 
  }
5382
 
  
5383
 
  itemlist_load(arg1);
5384
 
  
5385
 
  return SWIG_arg;
5386
 
  
5387
 
  if(0) SWIG_fail;
5388
 
  
5389
 
fail:
5390
 
  lua_error(L);
5391
 
  return SWIG_arg;
5392
 
}
5393
 
 
5394
 
 
5395
 
static int _wrap_itemlist_unload(lua_State* L) {
5396
 
  int SWIG_arg = 0;
5397
 
  int arg1 ;
5398
 
  
5399
 
  SWIG_check_num_args("itemlist_unload",1,1)
5400
 
  if(!lua_isnumber(L,1)) SWIG_fail_arg("itemlist_unload",1,"int");
5401
 
  arg1 = (int)lua_tonumber(L, 1);
5402
 
  itemlist_unload(arg1);
5403
 
  
5404
 
  return SWIG_arg;
5405
 
  
5406
 
  if(0) SWIG_fail;
5407
 
  
5408
 
fail:
5409
 
  lua_error(L);
5410
 
  return SWIG_arg;
5411
 
}
5412
 
 
5413
 
 
5414
 
static int _wrap_itemlist_set_view_mode(lua_State* L) {
5415
 
  int SWIG_arg = 0;
5416
 
  unsigned int arg1 ;
5417
 
  
5418
 
  SWIG_check_num_args("itemlist_set_view_mode",1,1)
5419
 
  if(!lua_isnumber(L,1)) SWIG_fail_arg("itemlist_set_view_mode",1,"unsigned int");
5420
 
  SWIG_contract_assert((lua_tonumber(L,1)>=0),"number must not be negative")
5421
 
  arg1 = (unsigned int)lua_tonumber(L, 1);
5422
 
  itemlist_set_view_mode(arg1);
5423
 
  
5424
 
  return SWIG_arg;
5425
 
  
5426
 
  if(0) SWIG_fail;
5427
 
  
5428
 
fail:
5429
 
  lua_error(L);
5430
 
  return SWIG_arg;
5431
 
}
5432
 
 
5433
 
 
5434
 
static int _wrap_itemlist_get_view_mode(lua_State* L) {
5435
 
  int SWIG_arg = 0;
5436
 
  unsigned int result;
5437
 
  
5438
 
  SWIG_check_num_args("itemlist_get_view_mode",0,0)
5439
 
  result = (unsigned int)itemlist_get_view_mode();
5440
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5441
 
  return SWIG_arg;
5442
 
  
5443
 
  if(0) SWIG_fail;
5444
 
  
5445
 
fail:
5446
 
  lua_error(L);
5447
 
  return SWIG_arg;
5448
 
}
5449
 
 
5450
 
 
5451
 
static int _wrap_on_view_activate(lua_State* L) {
5452
 
  int SWIG_arg = 0;
5453
 
  GtkRadioAction *arg1 = (GtkRadioAction *) 0 ;
5454
 
  GtkRadioAction *arg2 = (GtkRadioAction *) 0 ;
5455
 
  gpointer arg3 ;
5456
 
  gpointer *argp3 ;
5457
 
  
5458
 
  SWIG_check_num_args("on_view_activate",3,3)
5459
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_view_activate",1,"GtkRadioAction *");
5460
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("on_view_activate",2,"GtkRadioAction *");
5461
 
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("on_view_activate",3,"gpointer");
5462
 
  
5463
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkRadioAction,0))){
5464
 
    SWIG_fail_ptr("on_view_activate",1,SWIGTYPE_p_GtkRadioAction);
5465
 
  }
5466
 
  
5467
 
  
5468
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GtkRadioAction,0))){
5469
 
    SWIG_fail_ptr("on_view_activate",2,SWIGTYPE_p_GtkRadioAction);
5470
 
  }
5471
 
  
5472
 
  
5473
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_gpointer,0))){
5474
 
    SWIG_fail_ptr("on_view_activate",3,SWIGTYPE_p_gpointer);
5475
 
  }
5476
 
  arg3 = *argp3;
5477
 
  
5478
 
  on_view_activate(arg1,arg2,arg3);
5479
 
  
5480
 
  return SWIG_arg;
5481
 
  
5482
 
  if(0) SWIG_fail;
5483
 
  
5484
 
fail:
5485
 
  lua_error(L);
5486
 
  return SWIG_arg;
5487
 
}
5488
 
 
5489
 
 
5490
 
static int _wrap_itemlist_update_item(lua_State* L) {
5491
 
  int SWIG_arg = 0;
5492
 
  itemPtr arg1 = (itemPtr) 0 ;
5493
 
  
5494
 
  SWIG_check_num_args("itemlist_update_item",1,1)
5495
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_update_item",1,"itemPtr");
5496
 
  
5497
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5498
 
    SWIG_fail_ptr("itemlist_update_item",1,SWIGTYPE_p_item);
5499
 
  }
5500
 
  
5501
 
  itemlist_update_item(arg1);
5502
 
  
5503
 
  return SWIG_arg;
5504
 
  
5505
 
  if(0) SWIG_fail;
5506
 
  
5507
 
fail:
5508
 
  lua_error(L);
5509
 
  return SWIG_arg;
5510
 
}
5511
 
 
5512
 
 
5513
 
static int _wrap_itemlist_request_remove_item(lua_State* L) {
5514
 
  int SWIG_arg = 0;
5515
 
  itemPtr arg1 = (itemPtr) 0 ;
5516
 
  
5517
 
  SWIG_check_num_args("itemlist_request_remove_item",1,1)
5518
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_request_remove_item",1,"itemPtr");
5519
 
  
5520
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5521
 
    SWIG_fail_ptr("itemlist_request_remove_item",1,SWIGTYPE_p_item);
5522
 
  }
5523
 
  
5524
 
  itemlist_request_remove_item(arg1);
5525
 
  
5526
 
  return SWIG_arg;
5527
 
  
5528
 
  if(0) SWIG_fail;
5529
 
  
5530
 
fail:
5531
 
  lua_error(L);
5532
 
  return SWIG_arg;
5533
 
}
5534
 
 
5535
 
 
5536
 
static int _wrap_itemlist_remove_item(lua_State* L) {
5537
 
  int SWIG_arg = 0;
5538
 
  itemPtr arg1 = (itemPtr) 0 ;
5539
 
  
5540
 
  SWIG_check_num_args("itemlist_remove_item",1,1)
5541
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_remove_item",1,"itemPtr");
5542
 
  
5543
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5544
 
    SWIG_fail_ptr("itemlist_remove_item",1,SWIGTYPE_p_item);
5545
 
  }
5546
 
  
5547
 
  itemlist_remove_item(arg1);
5548
 
  
5549
 
  return SWIG_arg;
5550
 
  
5551
 
  if(0) SWIG_fail;
5552
 
  
5553
 
fail:
5554
 
  lua_error(L);
5555
 
  return SWIG_arg;
5556
 
}
5557
 
 
5558
 
 
5559
 
static int _wrap_itemlist_remove_items(lua_State* L) {
5560
 
  int SWIG_arg = 0;
5561
 
  itemSetPtr arg1 ;
5562
 
  GList *arg2 = (GList *) 0 ;
5563
 
  itemSetPtr *argp1 ;
5564
 
  
5565
 
  SWIG_check_num_args("itemlist_remove_items",2,2)
5566
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("itemlist_remove_items",1,"itemSetPtr");
5567
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("itemlist_remove_items",2,"GList *");
5568
 
  
5569
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_itemSetPtr,0))){
5570
 
    SWIG_fail_ptr("itemlist_remove_items",1,SWIGTYPE_p_itemSetPtr);
5571
 
  }
5572
 
  arg1 = *argp1;
5573
 
  
5574
 
  
5575
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GList,0))){
5576
 
    SWIG_fail_ptr("itemlist_remove_items",2,SWIGTYPE_p_GList);
5577
 
  }
5578
 
  
5579
 
  itemlist_remove_items(arg1,arg2);
5580
 
  
5581
 
  return SWIG_arg;
5582
 
  
5583
 
  if(0) SWIG_fail;
5584
 
  
5585
 
fail:
5586
 
  lua_error(L);
5587
 
  return SWIG_arg;
5588
 
}
5589
 
 
5590
 
 
5591
 
static int _wrap_itemlist_remove_all_items(lua_State* L) {
5592
 
  int SWIG_arg = 0;
5593
 
  struct node *arg1 = (struct node *) 0 ;
5594
 
  
5595
 
  SWIG_check_num_args("itemlist_remove_all_items",1,1)
5596
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_remove_all_items",1,"struct node *");
5597
 
  
5598
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
5599
 
    SWIG_fail_ptr("itemlist_remove_all_items",1,SWIGTYPE_p_node);
5600
 
  }
5601
 
  
5602
 
  itemlist_remove_all_items(arg1);
5603
 
  
5604
 
  return SWIG_arg;
5605
 
  
5606
 
  if(0) SWIG_fail;
5607
 
  
5608
 
fail:
5609
 
  lua_error(L);
5610
 
  return SWIG_arg;
5611
 
}
5612
 
 
5613
 
 
5614
 
static int _wrap_itemlist_selection_changed(lua_State* L) {
5615
 
  int SWIG_arg = 0;
5616
 
  itemPtr arg1 = (itemPtr) 0 ;
5617
 
  
5618
 
  SWIG_check_num_args("itemlist_selection_changed",1,1)
5619
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_selection_changed",1,"itemPtr");
5620
 
  
5621
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5622
 
    SWIG_fail_ptr("itemlist_selection_changed",1,SWIGTYPE_p_item);
5623
 
  }
5624
 
  
5625
 
  itemlist_selection_changed(arg1);
5626
 
  
5627
 
  return SWIG_arg;
5628
 
  
5629
 
  if(0) SWIG_fail;
5630
 
  
5631
 
fail:
5632
 
  lua_error(L);
5633
 
  return SWIG_arg;
5634
 
}
5635
 
 
5636
 
 
5637
 
static int _wrap_itemlist_select_next_unread(lua_State* L) {
5638
 
  int SWIG_arg = 0;
5639
 
  
5640
 
  SWIG_check_num_args("itemlist_select_next_unread",0,0)
5641
 
  itemlist_select_next_unread();
5642
 
  
5643
 
  return SWIG_arg;
5644
 
  
5645
 
  if(0) SWIG_fail;
5646
 
  
5647
 
fail:
5648
 
  lua_error(L);
5649
 
  return SWIG_arg;
5650
 
}
5651
 
 
5652
 
 
5653
 
static int _wrap_itemlist_toggle_flag(lua_State* L) {
5654
 
  int SWIG_arg = 0;
5655
 
  itemPtr arg1 = (itemPtr) 0 ;
5656
 
  
5657
 
  SWIG_check_num_args("itemlist_toggle_flag",1,1)
5658
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_toggle_flag",1,"itemPtr");
5659
 
  
5660
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5661
 
    SWIG_fail_ptr("itemlist_toggle_flag",1,SWIGTYPE_p_item);
5662
 
  }
5663
 
  
5664
 
  itemlist_toggle_flag(arg1);
5665
 
  
5666
 
  return SWIG_arg;
5667
 
  
5668
 
  if(0) SWIG_fail;
5669
 
  
5670
 
fail:
5671
 
  lua_error(L);
5672
 
  return SWIG_arg;
5673
 
}
5674
 
 
5675
 
 
5676
 
static int _wrap_itemlist_toggle_read_status(lua_State* L) {
5677
 
  int SWIG_arg = 0;
5678
 
  itemPtr arg1 = (itemPtr) 0 ;
5679
 
  
5680
 
  SWIG_check_num_args("itemlist_toggle_read_status",1,1)
5681
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_toggle_read_status",1,"itemPtr");
5682
 
  
5683
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
5684
 
    SWIG_fail_ptr("itemlist_toggle_read_status",1,SWIGTYPE_p_item);
5685
 
  }
5686
 
  
5687
 
  itemlist_toggle_read_status(arg1);
5688
 
  
5689
 
  return SWIG_arg;
5690
 
  
5691
 
  if(0) SWIG_fail;
5692
 
  
5693
 
fail:
5694
 
  lua_error(L);
5695
 
  return SWIG_arg;
5696
 
}
5697
 
 
5698
 
 
5699
 
static int _wrap_socialSite_name_set(lua_State* L) {
5700
 
  int SWIG_arg = 0;
5701
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5702
 
  char *arg2 = (char *) 0 ;
5703
 
  
5704
 
  SWIG_check_num_args("name",2,2)
5705
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("name",1,"struct socialSite *");
5706
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("name",2,"char *");
5707
 
  
5708
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5709
 
    SWIG_fail_ptr("socialSite_name_set",1,SWIGTYPE_p_socialSite);
5710
 
  }
5711
 
  
5712
 
  arg2 = (char *)lua_tostring(L, 2);
5713
 
  {
5714
 
    if (arg1->name) free((char *)arg1->name);
5715
 
    if (arg2) {
5716
 
      arg1->name = (char *) malloc(strlen((const char *)arg2)+1);
5717
 
      strcpy((char *)arg1->name, (const char *)arg2);
5718
 
    } else {
5719
 
      arg1->name = 0;
5720
 
    }
5721
 
  }
5722
 
  
5723
 
  return SWIG_arg;
5724
 
  
5725
 
  if(0) SWIG_fail;
5726
 
  
5727
 
fail:
5728
 
  lua_error(L);
5729
 
  return SWIG_arg;
5730
 
}
5731
 
 
5732
 
 
5733
 
static int _wrap_socialSite_name_get(lua_State* L) {
5734
 
  int SWIG_arg = 0;
5735
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5736
 
  char *result = 0 ;
5737
 
  
5738
 
  SWIG_check_num_args("name",1,1)
5739
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("name",1,"struct socialSite *");
5740
 
  
5741
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5742
 
    SWIG_fail_ptr("socialSite_name_get",1,SWIGTYPE_p_socialSite);
5743
 
  }
5744
 
  
5745
 
  result = (char *) ((arg1)->name);
5746
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
5747
 
  return SWIG_arg;
5748
 
  
5749
 
  if(0) SWIG_fail;
5750
 
  
5751
 
fail:
5752
 
  lua_error(L);
5753
 
  return SWIG_arg;
5754
 
}
5755
 
 
5756
 
 
5757
 
static int _wrap_socialSite_url_set(lua_State* L) {
5758
 
  int SWIG_arg = 0;
5759
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5760
 
  char *arg2 = (char *) 0 ;
5761
 
  
5762
 
  SWIG_check_num_args("url",2,2)
5763
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("url",1,"struct socialSite *");
5764
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("url",2,"char *");
5765
 
  
5766
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5767
 
    SWIG_fail_ptr("socialSite_url_set",1,SWIGTYPE_p_socialSite);
5768
 
  }
5769
 
  
5770
 
  arg2 = (char *)lua_tostring(L, 2);
5771
 
  {
5772
 
    if (arg1->url) free((char *)arg1->url);
5773
 
    if (arg2) {
5774
 
      arg1->url = (char *) malloc(strlen((const char *)arg2)+1);
5775
 
      strcpy((char *)arg1->url, (const char *)arg2);
5776
 
    } else {
5777
 
      arg1->url = 0;
5778
 
    }
5779
 
  }
5780
 
  
5781
 
  return SWIG_arg;
5782
 
  
5783
 
  if(0) SWIG_fail;
5784
 
  
5785
 
fail:
5786
 
  lua_error(L);
5787
 
  return SWIG_arg;
5788
 
}
5789
 
 
5790
 
 
5791
 
static int _wrap_socialSite_url_get(lua_State* L) {
5792
 
  int SWIG_arg = 0;
5793
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5794
 
  char *result = 0 ;
5795
 
  
5796
 
  SWIG_check_num_args("url",1,1)
5797
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("url",1,"struct socialSite *");
5798
 
  
5799
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5800
 
    SWIG_fail_ptr("socialSite_url_get",1,SWIGTYPE_p_socialSite);
5801
 
  }
5802
 
  
5803
 
  result = (char *) ((arg1)->url);
5804
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
5805
 
  return SWIG_arg;
5806
 
  
5807
 
  if(0) SWIG_fail;
5808
 
  
5809
 
fail:
5810
 
  lua_error(L);
5811
 
  return SWIG_arg;
5812
 
}
5813
 
 
5814
 
 
5815
 
static int _wrap_socialSite_title_set(lua_State* L) {
5816
 
  int SWIG_arg = 0;
5817
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5818
 
  int arg2 ;
5819
 
  
5820
 
  SWIG_check_num_args("title",2,2)
5821
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct socialSite *");
5822
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("title",2,"int");
5823
 
  
5824
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5825
 
    SWIG_fail_ptr("socialSite_title_set",1,SWIGTYPE_p_socialSite);
5826
 
  }
5827
 
  
5828
 
  arg2 = (int)lua_tonumber(L, 2);
5829
 
  if (arg1) (arg1)->title = arg2;
5830
 
  
5831
 
  return SWIG_arg;
5832
 
  
5833
 
  if(0) SWIG_fail;
5834
 
  
5835
 
fail:
5836
 
  lua_error(L);
5837
 
  return SWIG_arg;
5838
 
}
5839
 
 
5840
 
 
5841
 
static int _wrap_socialSite_title_get(lua_State* L) {
5842
 
  int SWIG_arg = 0;
5843
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5844
 
  int result;
5845
 
  
5846
 
  SWIG_check_num_args("title",1,1)
5847
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("title",1,"struct socialSite *");
5848
 
  
5849
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5850
 
    SWIG_fail_ptr("socialSite_title_get",1,SWIGTYPE_p_socialSite);
5851
 
  }
5852
 
  
5853
 
  result = (int) ((arg1)->title);
5854
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5855
 
  return SWIG_arg;
5856
 
  
5857
 
  if(0) SWIG_fail;
5858
 
  
5859
 
fail:
5860
 
  lua_error(L);
5861
 
  return SWIG_arg;
5862
 
}
5863
 
 
5864
 
 
5865
 
static int _wrap_socialSite_titleFirst_set(lua_State* L) {
5866
 
  int SWIG_arg = 0;
5867
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5868
 
  int arg2 ;
5869
 
  
5870
 
  SWIG_check_num_args("titleFirst",2,2)
5871
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("titleFirst",1,"struct socialSite *");
5872
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("titleFirst",2,"int");
5873
 
  
5874
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5875
 
    SWIG_fail_ptr("socialSite_titleFirst_set",1,SWIGTYPE_p_socialSite);
5876
 
  }
5877
 
  
5878
 
  arg2 = (int)lua_tonumber(L, 2);
5879
 
  if (arg1) (arg1)->titleFirst = arg2;
5880
 
  
5881
 
  return SWIG_arg;
5882
 
  
5883
 
  if(0) SWIG_fail;
5884
 
  
5885
 
fail:
5886
 
  lua_error(L);
5887
 
  return SWIG_arg;
5888
 
}
5889
 
 
5890
 
 
5891
 
static int _wrap_socialSite_titleFirst_get(lua_State* L) {
5892
 
  int SWIG_arg = 0;
5893
 
  struct socialSite *arg1 = (struct socialSite *) 0 ;
5894
 
  int result;
5895
 
  
5896
 
  SWIG_check_num_args("titleFirst",1,1)
5897
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("titleFirst",1,"struct socialSite *");
5898
 
  
5899
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_socialSite,0))){
5900
 
    SWIG_fail_ptr("socialSite_titleFirst_get",1,SWIGTYPE_p_socialSite);
5901
 
  }
5902
 
  
5903
 
  result = (int) ((arg1)->titleFirst);
5904
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5905
 
  return SWIG_arg;
5906
 
  
5907
 
  if(0) SWIG_fail;
5908
 
  
5909
 
fail:
5910
 
  lua_error(L);
5911
 
  return SWIG_arg;
5912
 
}
5913
 
 
5914
 
 
5915
 
static int _wrap_new_socialSite(lua_State* L) {
5916
 
  int SWIG_arg = 0;
5917
 
  struct socialSite *result = 0 ;
5918
 
  
5919
 
  SWIG_check_num_args("socialSite::socialSite",0,0)
5920
 
  result = (struct socialSite *)calloc(1, sizeof(struct socialSite));
5921
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_socialSite,1); SWIG_arg++; 
5922
 
  return SWIG_arg;
5923
 
  
5924
 
  if(0) SWIG_fail;
5925
 
  
5926
 
fail:
5927
 
  lua_error(L);
5928
 
  return SWIG_arg;
5929
 
}
5930
 
 
5931
 
 
5932
 
static void swig_delete_socialSite(void *obj) {
5933
 
struct socialSite *arg1 = (struct socialSite *) obj;
5934
 
free((char *) arg1);
5935
 
}
5936
 
static swig_lua_method swig_socialSite_methods[] = {
5937
 
    {0,0}
5938
 
};
5939
 
static swig_lua_attribute swig_socialSite_attributes[] = {
5940
 
    { "name", _wrap_socialSite_name_get, _wrap_socialSite_name_set},
5941
 
    { "url", _wrap_socialSite_url_get, _wrap_socialSite_url_set},
5942
 
    { "title", _wrap_socialSite_title_get, _wrap_socialSite_title_set},
5943
 
    { "titleFirst", _wrap_socialSite_titleFirst_get, _wrap_socialSite_titleFirst_set},
5944
 
    {0,0,0}
5945
 
};
5946
 
static swig_lua_class *swig_socialSite_bases[] = {0};
5947
 
static const char *swig_socialSite_base_names[] = {0};
5948
 
static swig_lua_class _wrap_class_socialSite = { "socialSite", &SWIGTYPE_p_socialSite,_wrap_new_socialSite, swig_delete_socialSite, swig_socialSite_methods, swig_socialSite_attributes, swig_socialSite_bases, swig_socialSite_base_names };
5949
 
 
5950
 
static int _wrap_social_init(lua_State* L) {
5951
 
  int SWIG_arg = 0;
5952
 
  
5953
 
  SWIG_check_num_args("social_init",0,0)
5954
 
  social_init();
5955
 
  
5956
 
  return SWIG_arg;
5957
 
  
5958
 
  if(0) SWIG_fail;
5959
 
  
5960
 
fail:
5961
 
  lua_error(L);
5962
 
  return SWIG_arg;
5963
 
}
5964
 
 
5965
 
 
5966
 
static int _wrap_social_free(lua_State* L) {
5967
 
  int SWIG_arg = 0;
5968
 
  
5969
 
  SWIG_check_num_args("social_free",0,0)
5970
 
  social_free();
5971
 
  
5972
 
  return SWIG_arg;
5973
 
  
5974
 
  if(0) SWIG_fail;
5975
 
  
5976
 
fail:
5977
 
  lua_error(L);
5978
 
  return SWIG_arg;
5979
 
}
5980
 
 
5981
 
 
5982
 
static int _wrap_social_set_bookmark_site(lua_State* L) {
5983
 
  int SWIG_arg = 0;
5984
 
  char *arg1 = (char *) 0 ;
5985
 
  
5986
 
  SWIG_check_num_args("social_set_bookmark_site",1,1)
5987
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_set_bookmark_site",1,"char const *");
5988
 
  arg1 = (char *)lua_tostring(L, 1);
5989
 
  social_set_bookmark_site((char const *)arg1);
5990
 
  
5991
 
  return SWIG_arg;
5992
 
  
5993
 
  if(0) SWIG_fail;
5994
 
  
5995
 
fail:
5996
 
  lua_error(L);
5997
 
  return SWIG_arg;
5998
 
}
5999
 
 
6000
 
 
6001
 
static int _wrap_social_register_site(lua_State* L) {
6002
 
  int SWIG_arg = 0;
6003
 
  char *arg1 = (char *) 0 ;
6004
 
  char *arg2 = (char *) 0 ;
6005
 
  int arg3 ;
6006
 
  int arg4 ;
6007
 
  
6008
 
  SWIG_check_num_args("social_register_site",4,4)
6009
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_register_site",1,"char *");
6010
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("social_register_site",2,"char *");
6011
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("social_register_site",3,"int");
6012
 
  if(!lua_isnumber(L,4)) SWIG_fail_arg("social_register_site",4,"int");
6013
 
  arg1 = (char *)lua_tostring(L, 1);
6014
 
  arg2 = (char *)lua_tostring(L, 2);
6015
 
  arg3 = (int)lua_tonumber(L, 3);
6016
 
  arg4 = (int)lua_tonumber(L, 4);
6017
 
  social_register_site(arg1,arg2,arg3,arg4);
6018
 
  
6019
 
  return SWIG_arg;
6020
 
  
6021
 
  if(0) SWIG_fail;
6022
 
  
6023
 
fail:
6024
 
  lua_error(L);
6025
 
  return SWIG_arg;
6026
 
}
6027
 
 
6028
 
 
6029
 
static int _wrap_social_register_bookmark_site(lua_State* L) {
6030
 
  int SWIG_arg = 0;
6031
 
  char *arg1 = (char *) 0 ;
6032
 
  char *arg2 = (char *) 0 ;
6033
 
  int arg3 ;
6034
 
  int arg4 ;
6035
 
  
6036
 
  SWIG_check_num_args("social_register_bookmark_site",4,4)
6037
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_register_bookmark_site",1,"char const *");
6038
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("social_register_bookmark_site",2,"char const *");
6039
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("social_register_bookmark_site",3,"int");
6040
 
  if(!lua_isnumber(L,4)) SWIG_fail_arg("social_register_bookmark_site",4,"int");
6041
 
  arg1 = (char *)lua_tostring(L, 1);
6042
 
  arg2 = (char *)lua_tostring(L, 2);
6043
 
  arg3 = (int)lua_tonumber(L, 3);
6044
 
  arg4 = (int)lua_tonumber(L, 4);
6045
 
  social_register_bookmark_site((char const *)arg1,(char const *)arg2,arg3,arg4);
6046
 
  
6047
 
  return SWIG_arg;
6048
 
  
6049
 
  if(0) SWIG_fail;
6050
 
  
6051
 
fail:
6052
 
  lua_error(L);
6053
 
  return SWIG_arg;
6054
 
}
6055
 
 
6056
 
 
6057
 
static int _wrap_social_get_bookmark_url(lua_State* L) {
6058
 
  int SWIG_arg = 0;
6059
 
  char *arg1 = (char *) 0 ;
6060
 
  char *arg2 = (char *) 0 ;
6061
 
  char *result = 0 ;
6062
 
  
6063
 
  SWIG_check_num_args("social_get_bookmark_url",2,2)
6064
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_get_bookmark_url",1,"char const *");
6065
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("social_get_bookmark_url",2,"char const *");
6066
 
  arg1 = (char *)lua_tostring(L, 1);
6067
 
  arg2 = (char *)lua_tostring(L, 2);
6068
 
  result = (char *)social_get_bookmark_url((char const *)arg1,(char const *)arg2);
6069
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6070
 
  return SWIG_arg;
6071
 
  
6072
 
  if(0) SWIG_fail;
6073
 
  
6074
 
fail:
6075
 
  lua_error(L);
6076
 
  return SWIG_arg;
6077
 
}
6078
 
 
6079
 
 
6080
 
static int _wrap_social_get_bookmark_site(lua_State* L) {
6081
 
  int SWIG_arg = 0;
6082
 
  char *result = 0 ;
6083
 
  
6084
 
  SWIG_check_num_args("social_get_bookmark_site",0,0)
6085
 
  result = (char *)social_get_bookmark_site();
6086
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6087
 
  return SWIG_arg;
6088
 
  
6089
 
  if(0) SWIG_fail;
6090
 
  
6091
 
fail:
6092
 
  lua_error(L);
6093
 
  return SWIG_arg;
6094
 
}
6095
 
 
6096
 
 
6097
 
static int _wrap_social_register_link_search_site(lua_State* L) {
6098
 
  int SWIG_arg = 0;
6099
 
  char *arg1 = (char *) 0 ;
6100
 
  char *arg2 = (char *) 0 ;
6101
 
  
6102
 
  SWIG_check_num_args("social_register_link_search_site",2,2)
6103
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_register_link_search_site",1,"char const *");
6104
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("social_register_link_search_site",2,"char const *");
6105
 
  arg1 = (char *)lua_tostring(L, 1);
6106
 
  arg2 = (char *)lua_tostring(L, 2);
6107
 
  social_register_link_search_site((char const *)arg1,(char const *)arg2);
6108
 
  
6109
 
  return SWIG_arg;
6110
 
  
6111
 
  if(0) SWIG_fail;
6112
 
  
6113
 
fail:
6114
 
  lua_error(L);
6115
 
  return SWIG_arg;
6116
 
}
6117
 
 
6118
 
 
6119
 
static int _wrap_social_get_link_search_url(lua_State* L) {
6120
 
  int SWIG_arg = 0;
6121
 
  char *arg1 = (char *) 0 ;
6122
 
  char *result = 0 ;
6123
 
  
6124
 
  SWIG_check_num_args("social_get_link_search_url",1,1)
6125
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_get_link_search_url",1,"char const *");
6126
 
  arg1 = (char *)lua_tostring(L, 1);
6127
 
  result = (char *)social_get_link_search_url((char const *)arg1);
6128
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6129
 
  return SWIG_arg;
6130
 
  
6131
 
  if(0) SWIG_fail;
6132
 
  
6133
 
fail:
6134
 
  lua_error(L);
6135
 
  return SWIG_arg;
6136
 
}
6137
 
 
6138
 
 
6139
 
static int _wrap_social_set_link_search_site(lua_State* L) {
6140
 
  int SWIG_arg = 0;
6141
 
  char *arg1 = (char *) 0 ;
6142
 
  
6143
 
  SWIG_check_num_args("social_set_link_search_site",1,1)
6144
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("social_set_link_search_site",1,"char const *");
6145
 
  arg1 = (char *)lua_tostring(L, 1);
6146
 
  social_set_link_search_site((char const *)arg1);
6147
 
  
6148
 
  return SWIG_arg;
6149
 
  
6150
 
  if(0) SWIG_fail;
6151
 
  
6152
 
fail:
6153
 
  lua_error(L);
6154
 
  return SWIG_arg;
6155
 
}
6156
 
 
6157
 
 
6158
 
static int _wrap_social_get_link_search_site(lua_State* L) {
6159
 
  int SWIG_arg = 0;
6160
 
  char *result = 0 ;
6161
 
  
6162
 
  SWIG_check_num_args("social_get_link_search_site",0,0)
6163
 
  result = (char *)social_get_link_search_site();
6164
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6165
 
  return SWIG_arg;
6166
 
  
6167
 
  if(0) SWIG_fail;
6168
 
  
6169
 
fail:
6170
 
  lua_error(L);
6171
 
  return SWIG_arg;
6172
 
}
6173
 
 
6174
 
 
6175
 
static int _wrap_subscription_node_set(lua_State* L) {
6176
 
  int SWIG_arg = 0;
6177
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6178
 
  nodePtr arg2 = (nodePtr) 0 ;
6179
 
  
6180
 
  SWIG_check_num_args("node",2,2)
6181
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node",1,"struct subscription *");
6182
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node",2,"nodePtr");
6183
 
  
6184
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6185
 
    SWIG_fail_ptr("subscription_node_set",1,SWIGTYPE_p_subscription);
6186
 
  }
6187
 
  
6188
 
  
6189
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_node,SWIG_POINTER_DISOWN))){
6190
 
    SWIG_fail_ptr("subscription_node_set",2,SWIGTYPE_p_node);
6191
 
  }
6192
 
  
6193
 
  if (arg1) (arg1)->node = arg2;
6194
 
  
6195
 
  return SWIG_arg;
6196
 
  
6197
 
  if(0) SWIG_fail;
6198
 
  
6199
 
fail:
6200
 
  lua_error(L);
6201
 
  return SWIG_arg;
6202
 
}
6203
 
 
6204
 
 
6205
 
static int _wrap_subscription_node_get(lua_State* L) {
6206
 
  int SWIG_arg = 0;
6207
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6208
 
  nodePtr result;
6209
 
  
6210
 
  SWIG_check_num_args("node",1,1)
6211
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node",1,"struct subscription *");
6212
 
  
6213
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6214
 
    SWIG_fail_ptr("subscription_node_get",1,SWIGTYPE_p_subscription);
6215
 
  }
6216
 
  
6217
 
  result = (nodePtr) ((arg1)->node);
6218
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_node,0); SWIG_arg++; 
6219
 
  return SWIG_arg;
6220
 
  
6221
 
  if(0) SWIG_fail;
6222
 
  
6223
 
fail:
6224
 
  lua_error(L);
6225
 
  return SWIG_arg;
6226
 
}
6227
 
 
6228
 
 
6229
 
static int _wrap_subscription_type_set(lua_State* L) {
6230
 
  int SWIG_arg = 0;
6231
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6232
 
  struct subscriptionType *arg2 = (struct subscriptionType *) 0 ;
6233
 
  
6234
 
  SWIG_check_num_args("type",2,2)
6235
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("type",1,"struct subscription *");
6236
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("type",2,"struct subscriptionType *");
6237
 
  
6238
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6239
 
    SWIG_fail_ptr("subscription_type_set",1,SWIGTYPE_p_subscription);
6240
 
  }
6241
 
  
6242
 
  
6243
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_subscriptionType,SWIG_POINTER_DISOWN))){
6244
 
    SWIG_fail_ptr("subscription_type_set",2,SWIGTYPE_p_subscriptionType);
6245
 
  }
6246
 
  
6247
 
  if (arg1) (arg1)->type = arg2;
6248
 
  
6249
 
  return SWIG_arg;
6250
 
  
6251
 
  if(0) SWIG_fail;
6252
 
  
6253
 
fail:
6254
 
  lua_error(L);
6255
 
  return SWIG_arg;
6256
 
}
6257
 
 
6258
 
 
6259
 
static int _wrap_subscription_type_get(lua_State* L) {
6260
 
  int SWIG_arg = 0;
6261
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6262
 
  struct subscriptionType *result = 0 ;
6263
 
  
6264
 
  SWIG_check_num_args("type",1,1)
6265
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("type",1,"struct subscription *");
6266
 
  
6267
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6268
 
    SWIG_fail_ptr("subscription_type_get",1,SWIGTYPE_p_subscription);
6269
 
  }
6270
 
  
6271
 
  result = (struct subscriptionType *) ((arg1)->type);
6272
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_subscriptionType,0); SWIG_arg++; 
6273
 
  return SWIG_arg;
6274
 
  
6275
 
  if(0) SWIG_fail;
6276
 
  
6277
 
fail:
6278
 
  lua_error(L);
6279
 
  return SWIG_arg;
6280
 
}
6281
 
 
6282
 
 
6283
 
static int _wrap_subscription_source_set(lua_State* L) {
6284
 
  int SWIG_arg = 0;
6285
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6286
 
  char *arg2 = (char *) 0 ;
6287
 
  
6288
 
  SWIG_check_num_args("source",2,2)
6289
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct subscription *");
6290
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("source",2,"char *");
6291
 
  
6292
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6293
 
    SWIG_fail_ptr("subscription_source_set",1,SWIGTYPE_p_subscription);
6294
 
  }
6295
 
  
6296
 
  arg2 = (char *)lua_tostring(L, 2);
6297
 
  {
6298
 
    if (arg1->source) free((char *)arg1->source);
6299
 
    if (arg2) {
6300
 
      arg1->source = (char *) malloc(strlen((const char *)arg2)+1);
6301
 
      strcpy((char *)arg1->source, (const char *)arg2);
6302
 
    } else {
6303
 
      arg1->source = 0;
6304
 
    }
6305
 
  }
6306
 
  
6307
 
  return SWIG_arg;
6308
 
  
6309
 
  if(0) SWIG_fail;
6310
 
  
6311
 
fail:
6312
 
  lua_error(L);
6313
 
  return SWIG_arg;
6314
 
}
6315
 
 
6316
 
 
6317
 
static int _wrap_subscription_source_get(lua_State* L) {
6318
 
  int SWIG_arg = 0;
6319
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6320
 
  char *result = 0 ;
6321
 
  
6322
 
  SWIG_check_num_args("source",1,1)
6323
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("source",1,"struct subscription *");
6324
 
  
6325
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6326
 
    SWIG_fail_ptr("subscription_source_get",1,SWIGTYPE_p_subscription);
6327
 
  }
6328
 
  
6329
 
  result = (char *) ((arg1)->source);
6330
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6331
 
  return SWIG_arg;
6332
 
  
6333
 
  if(0) SWIG_fail;
6334
 
  
6335
 
fail:
6336
 
  lua_error(L);
6337
 
  return SWIG_arg;
6338
 
}
6339
 
 
6340
 
 
6341
 
static int _wrap_subscription_origSource_set(lua_State* L) {
6342
 
  int SWIG_arg = 0;
6343
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6344
 
  char *arg2 = (char *) 0 ;
6345
 
  
6346
 
  SWIG_check_num_args("origSource",2,2)
6347
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("origSource",1,"struct subscription *");
6348
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("origSource",2,"char *");
6349
 
  
6350
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6351
 
    SWIG_fail_ptr("subscription_origSource_set",1,SWIGTYPE_p_subscription);
6352
 
  }
6353
 
  
6354
 
  arg2 = (char *)lua_tostring(L, 2);
6355
 
  {
6356
 
    if (arg1->origSource) free((char *)arg1->origSource);
6357
 
    if (arg2) {
6358
 
      arg1->origSource = (char *) malloc(strlen((const char *)arg2)+1);
6359
 
      strcpy((char *)arg1->origSource, (const char *)arg2);
6360
 
    } else {
6361
 
      arg1->origSource = 0;
6362
 
    }
6363
 
  }
6364
 
  
6365
 
  return SWIG_arg;
6366
 
  
6367
 
  if(0) SWIG_fail;
6368
 
  
6369
 
fail:
6370
 
  lua_error(L);
6371
 
  return SWIG_arg;
6372
 
}
6373
 
 
6374
 
 
6375
 
static int _wrap_subscription_origSource_get(lua_State* L) {
6376
 
  int SWIG_arg = 0;
6377
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6378
 
  char *result = 0 ;
6379
 
  
6380
 
  SWIG_check_num_args("origSource",1,1)
6381
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("origSource",1,"struct subscription *");
6382
 
  
6383
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6384
 
    SWIG_fail_ptr("subscription_origSource_get",1,SWIGTYPE_p_subscription);
6385
 
  }
6386
 
  
6387
 
  result = (char *) ((arg1)->origSource);
6388
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6389
 
  return SWIG_arg;
6390
 
  
6391
 
  if(0) SWIG_fail;
6392
 
  
6393
 
fail:
6394
 
  lua_error(L);
6395
 
  return SWIG_arg;
6396
 
}
6397
 
 
6398
 
 
6399
 
static int _wrap_subscription_updateOptions_set(lua_State* L) {
6400
 
  int SWIG_arg = 0;
6401
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6402
 
  updateOptionsPtr arg2 ;
6403
 
  updateOptionsPtr *argp2 ;
6404
 
  
6405
 
  SWIG_check_num_args("updateOptions",2,2)
6406
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateOptions",1,"struct subscription *");
6407
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("updateOptions",2,"updateOptionsPtr");
6408
 
  
6409
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6410
 
    SWIG_fail_ptr("subscription_updateOptions_set",1,SWIGTYPE_p_subscription);
6411
 
  }
6412
 
  
6413
 
  
6414
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_updateOptionsPtr,0))){
6415
 
    SWIG_fail_ptr("subscription_updateOptions_set",2,SWIGTYPE_p_updateOptionsPtr);
6416
 
  }
6417
 
  arg2 = *argp2;
6418
 
  
6419
 
  if (arg1) (arg1)->updateOptions = arg2;
6420
 
  
6421
 
  return SWIG_arg;
6422
 
  
6423
 
  if(0) SWIG_fail;
6424
 
  
6425
 
fail:
6426
 
  lua_error(L);
6427
 
  return SWIG_arg;
6428
 
}
6429
 
 
6430
 
 
6431
 
static int _wrap_subscription_updateOptions_get(lua_State* L) {
6432
 
  int SWIG_arg = 0;
6433
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6434
 
  updateOptionsPtr result;
6435
 
  
6436
 
  SWIG_check_num_args("updateOptions",1,1)
6437
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateOptions",1,"struct subscription *");
6438
 
  
6439
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6440
 
    SWIG_fail_ptr("subscription_updateOptions_get",1,SWIGTYPE_p_subscription);
6441
 
  }
6442
 
  
6443
 
  result =  ((arg1)->updateOptions);
6444
 
  {
6445
 
    updateOptionsPtr * resultptr;
6446
 
    resultptr = (updateOptionsPtr *) malloc(sizeof(updateOptionsPtr));
6447
 
    memmove(resultptr, &result, sizeof(updateOptionsPtr));
6448
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_updateOptionsPtr,1); SWIG_arg++;
6449
 
  }
6450
 
  return SWIG_arg;
6451
 
  
6452
 
  if(0) SWIG_fail;
6453
 
  
6454
 
fail:
6455
 
  lua_error(L);
6456
 
  return SWIG_arg;
6457
 
}
6458
 
 
6459
 
 
6460
 
static int _wrap_subscription_updateJob_set(lua_State* L) {
6461
 
  int SWIG_arg = 0;
6462
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6463
 
  struct updateJob *arg2 = (struct updateJob *) 0 ;
6464
 
  
6465
 
  SWIG_check_num_args("updateJob",2,2)
6466
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateJob",1,"struct subscription *");
6467
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("updateJob",2,"struct updateJob *");
6468
 
  
6469
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6470
 
    SWIG_fail_ptr("subscription_updateJob_set",1,SWIGTYPE_p_subscription);
6471
 
  }
6472
 
  
6473
 
  
6474
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_updateJob,SWIG_POINTER_DISOWN))){
6475
 
    SWIG_fail_ptr("subscription_updateJob_set",2,SWIGTYPE_p_updateJob);
6476
 
  }
6477
 
  
6478
 
  if (arg1) (arg1)->updateJob = arg2;
6479
 
  
6480
 
  return SWIG_arg;
6481
 
  
6482
 
  if(0) SWIG_fail;
6483
 
  
6484
 
fail:
6485
 
  lua_error(L);
6486
 
  return SWIG_arg;
6487
 
}
6488
 
 
6489
 
 
6490
 
static int _wrap_subscription_updateJob_get(lua_State* L) {
6491
 
  int SWIG_arg = 0;
6492
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6493
 
  struct updateJob *result = 0 ;
6494
 
  
6495
 
  SWIG_check_num_args("updateJob",1,1)
6496
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateJob",1,"struct subscription *");
6497
 
  
6498
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6499
 
    SWIG_fail_ptr("subscription_updateJob_get",1,SWIGTYPE_p_subscription);
6500
 
  }
6501
 
  
6502
 
  result = (struct updateJob *) ((arg1)->updateJob);
6503
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_updateJob,0); SWIG_arg++; 
6504
 
  return SWIG_arg;
6505
 
  
6506
 
  if(0) SWIG_fail;
6507
 
  
6508
 
fail:
6509
 
  lua_error(L);
6510
 
  return SWIG_arg;
6511
 
}
6512
 
 
6513
 
 
6514
 
static int _wrap_subscription_updateInterval_set(lua_State* L) {
6515
 
  int SWIG_arg = 0;
6516
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6517
 
  int arg2 ;
6518
 
  
6519
 
  SWIG_check_num_args("updateInterval",2,2)
6520
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateInterval",1,"struct subscription *");
6521
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("updateInterval",2,"int");
6522
 
  
6523
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6524
 
    SWIG_fail_ptr("subscription_updateInterval_set",1,SWIGTYPE_p_subscription);
6525
 
  }
6526
 
  
6527
 
  arg2 = (int)lua_tonumber(L, 2);
6528
 
  if (arg1) (arg1)->updateInterval = arg2;
6529
 
  
6530
 
  return SWIG_arg;
6531
 
  
6532
 
  if(0) SWIG_fail;
6533
 
  
6534
 
fail:
6535
 
  lua_error(L);
6536
 
  return SWIG_arg;
6537
 
}
6538
 
 
6539
 
 
6540
 
static int _wrap_subscription_updateInterval_get(lua_State* L) {
6541
 
  int SWIG_arg = 0;
6542
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6543
 
  int result;
6544
 
  
6545
 
  SWIG_check_num_args("updateInterval",1,1)
6546
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateInterval",1,"struct subscription *");
6547
 
  
6548
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6549
 
    SWIG_fail_ptr("subscription_updateInterval_get",1,SWIGTYPE_p_subscription);
6550
 
  }
6551
 
  
6552
 
  result = (int) ((arg1)->updateInterval);
6553
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
6554
 
  return SWIG_arg;
6555
 
  
6556
 
  if(0) SWIG_fail;
6557
 
  
6558
 
fail:
6559
 
  lua_error(L);
6560
 
  return SWIG_arg;
6561
 
}
6562
 
 
6563
 
 
6564
 
static int _wrap_subscription_defaultInterval_set(lua_State* L) {
6565
 
  int SWIG_arg = 0;
6566
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6567
 
  unsigned int arg2 ;
6568
 
  
6569
 
  SWIG_check_num_args("defaultInterval",2,2)
6570
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("defaultInterval",1,"struct subscription *");
6571
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("defaultInterval",2,"unsigned int");
6572
 
  
6573
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6574
 
    SWIG_fail_ptr("subscription_defaultInterval_set",1,SWIGTYPE_p_subscription);
6575
 
  }
6576
 
  
6577
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
6578
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
6579
 
  if (arg1) (arg1)->defaultInterval = arg2;
6580
 
  
6581
 
  return SWIG_arg;
6582
 
  
6583
 
  if(0) SWIG_fail;
6584
 
  
6585
 
fail:
6586
 
  lua_error(L);
6587
 
  return SWIG_arg;
6588
 
}
6589
 
 
6590
 
 
6591
 
static int _wrap_subscription_defaultInterval_get(lua_State* L) {
6592
 
  int SWIG_arg = 0;
6593
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6594
 
  unsigned int result;
6595
 
  
6596
 
  SWIG_check_num_args("defaultInterval",1,1)
6597
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("defaultInterval",1,"struct subscription *");
6598
 
  
6599
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6600
 
    SWIG_fail_ptr("subscription_defaultInterval_get",1,SWIGTYPE_p_subscription);
6601
 
  }
6602
 
  
6603
 
  result = (unsigned int) ((arg1)->defaultInterval);
6604
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
6605
 
  return SWIG_arg;
6606
 
  
6607
 
  if(0) SWIG_fail;
6608
 
  
6609
 
fail:
6610
 
  lua_error(L);
6611
 
  return SWIG_arg;
6612
 
}
6613
 
 
6614
 
 
6615
 
static int _wrap_subscription_metadata_set(lua_State* L) {
6616
 
  int SWIG_arg = 0;
6617
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6618
 
  GSList *arg2 = (GSList *) 0 ;
6619
 
  
6620
 
  SWIG_check_num_args("metadata",2,2)
6621
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("metadata",1,"struct subscription *");
6622
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("metadata",2,"GSList *");
6623
 
  
6624
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6625
 
    SWIG_fail_ptr("subscription_metadata_set",1,SWIGTYPE_p_subscription);
6626
 
  }
6627
 
  
6628
 
  
6629
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GSList,SWIG_POINTER_DISOWN))){
6630
 
    SWIG_fail_ptr("subscription_metadata_set",2,SWIGTYPE_p_GSList);
6631
 
  }
6632
 
  
6633
 
  if (arg1) (arg1)->metadata = arg2;
6634
 
  
6635
 
  return SWIG_arg;
6636
 
  
6637
 
  if(0) SWIG_fail;
6638
 
  
6639
 
fail:
6640
 
  lua_error(L);
6641
 
  return SWIG_arg;
6642
 
}
6643
 
 
6644
 
 
6645
 
static int _wrap_subscription_metadata_get(lua_State* L) {
6646
 
  int SWIG_arg = 0;
6647
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6648
 
  GSList *result = 0 ;
6649
 
  
6650
 
  SWIG_check_num_args("metadata",1,1)
6651
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("metadata",1,"struct subscription *");
6652
 
  
6653
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6654
 
    SWIG_fail_ptr("subscription_metadata_get",1,SWIGTYPE_p_subscription);
6655
 
  }
6656
 
  
6657
 
  result = (GSList *) ((arg1)->metadata);
6658
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GSList,0); SWIG_arg++; 
6659
 
  return SWIG_arg;
6660
 
  
6661
 
  if(0) SWIG_fail;
6662
 
  
6663
 
fail:
6664
 
  lua_error(L);
6665
 
  return SWIG_arg;
6666
 
}
6667
 
 
6668
 
 
6669
 
static int _wrap_subscription_updateError_set(lua_State* L) {
6670
 
  int SWIG_arg = 0;
6671
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6672
 
  char *arg2 = (char *) 0 ;
6673
 
  
6674
 
  SWIG_check_num_args("updateError",2,2)
6675
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateError",1,"struct subscription *");
6676
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("updateError",2,"char *");
6677
 
  
6678
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6679
 
    SWIG_fail_ptr("subscription_updateError_set",1,SWIGTYPE_p_subscription);
6680
 
  }
6681
 
  
6682
 
  arg2 = (char *)lua_tostring(L, 2);
6683
 
  {
6684
 
    if (arg1->updateError) free((char *)arg1->updateError);
6685
 
    if (arg2) {
6686
 
      arg1->updateError = (char *) malloc(strlen((const char *)arg2)+1);
6687
 
      strcpy((char *)arg1->updateError, (const char *)arg2);
6688
 
    } else {
6689
 
      arg1->updateError = 0;
6690
 
    }
6691
 
  }
6692
 
  
6693
 
  return SWIG_arg;
6694
 
  
6695
 
  if(0) SWIG_fail;
6696
 
  
6697
 
fail:
6698
 
  lua_error(L);
6699
 
  return SWIG_arg;
6700
 
}
6701
 
 
6702
 
 
6703
 
static int _wrap_subscription_updateError_get(lua_State* L) {
6704
 
  int SWIG_arg = 0;
6705
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6706
 
  char *result = 0 ;
6707
 
  
6708
 
  SWIG_check_num_args("updateError",1,1)
6709
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateError",1,"struct subscription *");
6710
 
  
6711
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6712
 
    SWIG_fail_ptr("subscription_updateError_get",1,SWIGTYPE_p_subscription);
6713
 
  }
6714
 
  
6715
 
  result = (char *) ((arg1)->updateError);
6716
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6717
 
  return SWIG_arg;
6718
 
  
6719
 
  if(0) SWIG_fail;
6720
 
  
6721
 
fail:
6722
 
  lua_error(L);
6723
 
  return SWIG_arg;
6724
 
}
6725
 
 
6726
 
 
6727
 
static int _wrap_subscription_httpError_set(lua_State* L) {
6728
 
  int SWIG_arg = 0;
6729
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6730
 
  char *arg2 = (char *) 0 ;
6731
 
  
6732
 
  SWIG_check_num_args("httpError",2,2)
6733
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("httpError",1,"struct subscription *");
6734
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("httpError",2,"char *");
6735
 
  
6736
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6737
 
    SWIG_fail_ptr("subscription_httpError_set",1,SWIGTYPE_p_subscription);
6738
 
  }
6739
 
  
6740
 
  arg2 = (char *)lua_tostring(L, 2);
6741
 
  {
6742
 
    if (arg1->httpError) free((char *)arg1->httpError);
6743
 
    if (arg2) {
6744
 
      arg1->httpError = (char *) malloc(strlen((const char *)arg2)+1);
6745
 
      strcpy((char *)arg1->httpError, (const char *)arg2);
6746
 
    } else {
6747
 
      arg1->httpError = 0;
6748
 
    }
6749
 
  }
6750
 
  
6751
 
  return SWIG_arg;
6752
 
  
6753
 
  if(0) SWIG_fail;
6754
 
  
6755
 
fail:
6756
 
  lua_error(L);
6757
 
  return SWIG_arg;
6758
 
}
6759
 
 
6760
 
 
6761
 
static int _wrap_subscription_httpError_get(lua_State* L) {
6762
 
  int SWIG_arg = 0;
6763
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6764
 
  char *result = 0 ;
6765
 
  
6766
 
  SWIG_check_num_args("httpError",1,1)
6767
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("httpError",1,"struct subscription *");
6768
 
  
6769
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6770
 
    SWIG_fail_ptr("subscription_httpError_get",1,SWIGTYPE_p_subscription);
6771
 
  }
6772
 
  
6773
 
  result = (char *) ((arg1)->httpError);
6774
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6775
 
  return SWIG_arg;
6776
 
  
6777
 
  if(0) SWIG_fail;
6778
 
  
6779
 
fail:
6780
 
  lua_error(L);
6781
 
  return SWIG_arg;
6782
 
}
6783
 
 
6784
 
 
6785
 
static int _wrap_subscription_httpErrorCode_set(lua_State* L) {
6786
 
  int SWIG_arg = 0;
6787
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6788
 
  int arg2 ;
6789
 
  
6790
 
  SWIG_check_num_args("httpErrorCode",2,2)
6791
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("httpErrorCode",1,"struct subscription *");
6792
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("httpErrorCode",2,"int");
6793
 
  
6794
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6795
 
    SWIG_fail_ptr("subscription_httpErrorCode_set",1,SWIGTYPE_p_subscription);
6796
 
  }
6797
 
  
6798
 
  arg2 = (int)lua_tonumber(L, 2);
6799
 
  if (arg1) (arg1)->httpErrorCode = arg2;
6800
 
  
6801
 
  return SWIG_arg;
6802
 
  
6803
 
  if(0) SWIG_fail;
6804
 
  
6805
 
fail:
6806
 
  lua_error(L);
6807
 
  return SWIG_arg;
6808
 
}
6809
 
 
6810
 
 
6811
 
static int _wrap_subscription_httpErrorCode_get(lua_State* L) {
6812
 
  int SWIG_arg = 0;
6813
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6814
 
  int result;
6815
 
  
6816
 
  SWIG_check_num_args("httpErrorCode",1,1)
6817
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("httpErrorCode",1,"struct subscription *");
6818
 
  
6819
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6820
 
    SWIG_fail_ptr("subscription_httpErrorCode_get",1,SWIGTYPE_p_subscription);
6821
 
  }
6822
 
  
6823
 
  result = (int) ((arg1)->httpErrorCode);
6824
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
6825
 
  return SWIG_arg;
6826
 
  
6827
 
  if(0) SWIG_fail;
6828
 
  
6829
 
fail:
6830
 
  lua_error(L);
6831
 
  return SWIG_arg;
6832
 
}
6833
 
 
6834
 
 
6835
 
static int _wrap_subscription_updateState_set(lua_State* L) {
6836
 
  int SWIG_arg = 0;
6837
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6838
 
  updateStatePtr arg2 ;
6839
 
  updateStatePtr *argp2 ;
6840
 
  
6841
 
  SWIG_check_num_args("updateState",2,2)
6842
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateState",1,"struct subscription *");
6843
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("updateState",2,"updateStatePtr");
6844
 
  
6845
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6846
 
    SWIG_fail_ptr("subscription_updateState_set",1,SWIGTYPE_p_subscription);
6847
 
  }
6848
 
  
6849
 
  
6850
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_updateStatePtr,0))){
6851
 
    SWIG_fail_ptr("subscription_updateState_set",2,SWIGTYPE_p_updateStatePtr);
6852
 
  }
6853
 
  arg2 = *argp2;
6854
 
  
6855
 
  if (arg1) (arg1)->updateState = arg2;
6856
 
  
6857
 
  return SWIG_arg;
6858
 
  
6859
 
  if(0) SWIG_fail;
6860
 
  
6861
 
fail:
6862
 
  lua_error(L);
6863
 
  return SWIG_arg;
6864
 
}
6865
 
 
6866
 
 
6867
 
static int _wrap_subscription_updateState_get(lua_State* L) {
6868
 
  int SWIG_arg = 0;
6869
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6870
 
  updateStatePtr result;
6871
 
  
6872
 
  SWIG_check_num_args("updateState",1,1)
6873
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("updateState",1,"struct subscription *");
6874
 
  
6875
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6876
 
    SWIG_fail_ptr("subscription_updateState_get",1,SWIGTYPE_p_subscription);
6877
 
  }
6878
 
  
6879
 
  result =  ((arg1)->updateState);
6880
 
  {
6881
 
    updateStatePtr * resultptr;
6882
 
    resultptr = (updateStatePtr *) malloc(sizeof(updateStatePtr));
6883
 
    memmove(resultptr, &result, sizeof(updateStatePtr));
6884
 
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_updateStatePtr,1); SWIG_arg++;
6885
 
  }
6886
 
  return SWIG_arg;
6887
 
  
6888
 
  if(0) SWIG_fail;
6889
 
  
6890
 
fail:
6891
 
  lua_error(L);
6892
 
  return SWIG_arg;
6893
 
}
6894
 
 
6895
 
 
6896
 
static int _wrap_subscription_discontinued_set(lua_State* L) {
6897
 
  int SWIG_arg = 0;
6898
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6899
 
  int arg2 ;
6900
 
  
6901
 
  SWIG_check_num_args("discontinued",2,2)
6902
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("discontinued",1,"struct subscription *");
6903
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("discontinued",2,"int");
6904
 
  
6905
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6906
 
    SWIG_fail_ptr("subscription_discontinued_set",1,SWIGTYPE_p_subscription);
6907
 
  }
6908
 
  
6909
 
  arg2 = (int)lua_tonumber(L, 2);
6910
 
  if (arg1) (arg1)->discontinued = arg2;
6911
 
  
6912
 
  return SWIG_arg;
6913
 
  
6914
 
  if(0) SWIG_fail;
6915
 
  
6916
 
fail:
6917
 
  lua_error(L);
6918
 
  return SWIG_arg;
6919
 
}
6920
 
 
6921
 
 
6922
 
static int _wrap_subscription_discontinued_get(lua_State* L) {
6923
 
  int SWIG_arg = 0;
6924
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6925
 
  int result;
6926
 
  
6927
 
  SWIG_check_num_args("discontinued",1,1)
6928
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("discontinued",1,"struct subscription *");
6929
 
  
6930
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6931
 
    SWIG_fail_ptr("subscription_discontinued_get",1,SWIGTYPE_p_subscription);
6932
 
  }
6933
 
  
6934
 
  result = (int) ((arg1)->discontinued);
6935
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
6936
 
  return SWIG_arg;
6937
 
  
6938
 
  if(0) SWIG_fail;
6939
 
  
6940
 
fail:
6941
 
  lua_error(L);
6942
 
  return SWIG_arg;
6943
 
}
6944
 
 
6945
 
 
6946
 
static int _wrap_subscription_filtercmd_set(lua_State* L) {
6947
 
  int SWIG_arg = 0;
6948
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6949
 
  char *arg2 = (char *) 0 ;
6950
 
  
6951
 
  SWIG_check_num_args("filtercmd",2,2)
6952
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("filtercmd",1,"struct subscription *");
6953
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("filtercmd",2,"char *");
6954
 
  
6955
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6956
 
    SWIG_fail_ptr("subscription_filtercmd_set",1,SWIGTYPE_p_subscription);
6957
 
  }
6958
 
  
6959
 
  arg2 = (char *)lua_tostring(L, 2);
6960
 
  {
6961
 
    if (arg1->filtercmd) free((char *)arg1->filtercmd);
6962
 
    if (arg2) {
6963
 
      arg1->filtercmd = (char *) malloc(strlen((const char *)arg2)+1);
6964
 
      strcpy((char *)arg1->filtercmd, (const char *)arg2);
6965
 
    } else {
6966
 
      arg1->filtercmd = 0;
6967
 
    }
6968
 
  }
6969
 
  
6970
 
  return SWIG_arg;
6971
 
  
6972
 
  if(0) SWIG_fail;
6973
 
  
6974
 
fail:
6975
 
  lua_error(L);
6976
 
  return SWIG_arg;
6977
 
}
6978
 
 
6979
 
 
6980
 
static int _wrap_subscription_filtercmd_get(lua_State* L) {
6981
 
  int SWIG_arg = 0;
6982
 
  struct subscription *arg1 = (struct subscription *) 0 ;
6983
 
  char *result = 0 ;
6984
 
  
6985
 
  SWIG_check_num_args("filtercmd",1,1)
6986
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("filtercmd",1,"struct subscription *");
6987
 
  
6988
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
6989
 
    SWIG_fail_ptr("subscription_filtercmd_get",1,SWIGTYPE_p_subscription);
6990
 
  }
6991
 
  
6992
 
  result = (char *) ((arg1)->filtercmd);
6993
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
6994
 
  return SWIG_arg;
6995
 
  
6996
 
  if(0) SWIG_fail;
6997
 
  
6998
 
fail:
6999
 
  lua_error(L);
7000
 
  return SWIG_arg;
7001
 
}
7002
 
 
7003
 
 
7004
 
static int _wrap_subscription_filterError_set(lua_State* L) {
7005
 
  int SWIG_arg = 0;
7006
 
  struct subscription *arg1 = (struct subscription *) 0 ;
7007
 
  char *arg2 = (char *) 0 ;
7008
 
  
7009
 
  SWIG_check_num_args("filterError",2,2)
7010
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("filterError",1,"struct subscription *");
7011
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("filterError",2,"char *");
7012
 
  
7013
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7014
 
    SWIG_fail_ptr("subscription_filterError_set",1,SWIGTYPE_p_subscription);
7015
 
  }
7016
 
  
7017
 
  arg2 = (char *)lua_tostring(L, 2);
7018
 
  {
7019
 
    if (arg1->filterError) free((char *)arg1->filterError);
7020
 
    if (arg2) {
7021
 
      arg1->filterError = (char *) malloc(strlen((const char *)arg2)+1);
7022
 
      strcpy((char *)arg1->filterError, (const char *)arg2);
7023
 
    } else {
7024
 
      arg1->filterError = 0;
7025
 
    }
7026
 
  }
7027
 
  
7028
 
  return SWIG_arg;
7029
 
  
7030
 
  if(0) SWIG_fail;
7031
 
  
7032
 
fail:
7033
 
  lua_error(L);
7034
 
  return SWIG_arg;
7035
 
}
7036
 
 
7037
 
 
7038
 
static int _wrap_subscription_filterError_get(lua_State* L) {
7039
 
  int SWIG_arg = 0;
7040
 
  struct subscription *arg1 = (struct subscription *) 0 ;
7041
 
  char *result = 0 ;
7042
 
  
7043
 
  SWIG_check_num_args("filterError",1,1)
7044
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("filterError",1,"struct subscription *");
7045
 
  
7046
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7047
 
    SWIG_fail_ptr("subscription_filterError_get",1,SWIGTYPE_p_subscription);
7048
 
  }
7049
 
  
7050
 
  result = (char *) ((arg1)->filterError);
7051
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
7052
 
  return SWIG_arg;
7053
 
  
7054
 
  if(0) SWIG_fail;
7055
 
  
7056
 
fail:
7057
 
  lua_error(L);
7058
 
  return SWIG_arg;
7059
 
}
7060
 
 
7061
 
 
7062
 
static int _wrap_new_subscription(lua_State* L) {
7063
 
  int SWIG_arg = 0;
7064
 
  struct subscription *result = 0 ;
7065
 
  
7066
 
  SWIG_check_num_args("subscription::subscription",0,0)
7067
 
  result = (struct subscription *)calloc(1, sizeof(struct subscription));
7068
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_subscription,1); SWIG_arg++; 
7069
 
  return SWIG_arg;
7070
 
  
7071
 
  if(0) SWIG_fail;
7072
 
  
7073
 
fail:
7074
 
  lua_error(L);
7075
 
  return SWIG_arg;
7076
 
}
7077
 
 
7078
 
 
7079
 
static void swig_delete_subscription(void *obj) {
7080
 
struct subscription *arg1 = (struct subscription *) obj;
7081
 
free((char *) arg1);
7082
 
}
7083
 
static swig_lua_method swig_subscription_methods[] = {
7084
 
    {0,0}
7085
 
};
7086
 
static swig_lua_attribute swig_subscription_attributes[] = {
7087
 
    { "node", _wrap_subscription_node_get, _wrap_subscription_node_set},
7088
 
    { "type", _wrap_subscription_type_get, _wrap_subscription_type_set},
7089
 
    { "source", _wrap_subscription_source_get, _wrap_subscription_source_set},
7090
 
    { "origSource", _wrap_subscription_origSource_get, _wrap_subscription_origSource_set},
7091
 
    { "updateOptions", _wrap_subscription_updateOptions_get, _wrap_subscription_updateOptions_set},
7092
 
    { "updateJob", _wrap_subscription_updateJob_get, _wrap_subscription_updateJob_set},
7093
 
    { "updateInterval", _wrap_subscription_updateInterval_get, _wrap_subscription_updateInterval_set},
7094
 
    { "defaultInterval", _wrap_subscription_defaultInterval_get, _wrap_subscription_defaultInterval_set},
7095
 
    { "metadata", _wrap_subscription_metadata_get, _wrap_subscription_metadata_set},
7096
 
    { "updateError", _wrap_subscription_updateError_get, _wrap_subscription_updateError_set},
7097
 
    { "httpError", _wrap_subscription_httpError_get, _wrap_subscription_httpError_set},
7098
 
    { "httpErrorCode", _wrap_subscription_httpErrorCode_get, _wrap_subscription_httpErrorCode_set},
7099
 
    { "updateState", _wrap_subscription_updateState_get, _wrap_subscription_updateState_set},
7100
 
    { "discontinued", _wrap_subscription_discontinued_get, _wrap_subscription_discontinued_set},
7101
 
    { "filtercmd", _wrap_subscription_filtercmd_get, _wrap_subscription_filtercmd_set},
7102
 
    { "filterError", _wrap_subscription_filterError_get, _wrap_subscription_filterError_set},
7103
 
    {0,0,0}
7104
 
};
7105
 
static swig_lua_class *swig_subscription_bases[] = {0};
7106
 
static const char *swig_subscription_base_names[] = {0};
7107
 
static swig_lua_class _wrap_class_subscription = { "subscription", &SWIGTYPE_p_subscription,_wrap_new_subscription, swig_delete_subscription, swig_subscription_methods, swig_subscription_attributes, swig_subscription_bases, swig_subscription_base_names };
7108
 
 
7109
 
static int _wrap_subscription_new(lua_State* L) {
7110
 
  int SWIG_arg = 0;
7111
 
  char *arg1 = (char *) 0 ;
7112
 
  char *arg2 = (char *) 0 ;
7113
 
  updateOptionsPtr arg3 ;
7114
 
  updateOptionsPtr *argp3 ;
7115
 
  subscriptionPtr result;
7116
 
  
7117
 
  SWIG_check_num_args("subscription_new",3,3)
7118
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("subscription_new",1,"char const *");
7119
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("subscription_new",2,"char const *");
7120
 
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("subscription_new",3,"updateOptionsPtr");
7121
 
  arg1 = (char *)lua_tostring(L, 1);
7122
 
  arg2 = (char *)lua_tostring(L, 2);
7123
 
  
7124
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_updateOptionsPtr,0))){
7125
 
    SWIG_fail_ptr("subscription_new",3,SWIGTYPE_p_updateOptionsPtr);
7126
 
  }
7127
 
  arg3 = *argp3;
7128
 
  
7129
 
  result = (subscriptionPtr)subscription_new((char const *)arg1,(char const *)arg2,arg3);
7130
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_subscription,0); SWIG_arg++; 
7131
 
  return SWIG_arg;
7132
 
  
7133
 
  if(0) SWIG_fail;
7134
 
  
7135
 
fail:
7136
 
  lua_error(L);
7137
 
  return SWIG_arg;
7138
 
}
7139
 
 
7140
 
 
7141
 
static int _wrap_subscription_import(lua_State* L) {
7142
 
  int SWIG_arg = 0;
7143
 
  xmlNodePtr arg1 ;
7144
 
  int arg2 ;
7145
 
  xmlNodePtr *argp1 ;
7146
 
  subscriptionPtr result;
7147
 
  
7148
 
  SWIG_check_num_args("subscription_import",2,2)
7149
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("subscription_import",1,"xmlNodePtr");
7150
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("subscription_import",2,"int");
7151
 
  
7152
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_xmlNodePtr,0))){
7153
 
    SWIG_fail_ptr("subscription_import",1,SWIGTYPE_p_xmlNodePtr);
7154
 
  }
7155
 
  arg1 = *argp1;
7156
 
  
7157
 
  arg2 = (int)lua_tonumber(L, 2);
7158
 
  result = (subscriptionPtr)subscription_import(arg1,arg2);
7159
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_subscription,0); SWIG_arg++; 
7160
 
  return SWIG_arg;
7161
 
  
7162
 
  if(0) SWIG_fail;
7163
 
  
7164
 
fail:
7165
 
  lua_error(L);
7166
 
  return SWIG_arg;
7167
 
}
7168
 
 
7169
 
 
7170
 
static int _wrap_subscription_export(lua_State* L) {
7171
 
  int SWIG_arg = 0;
7172
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7173
 
  xmlNodePtr arg2 ;
7174
 
  int arg3 ;
7175
 
  xmlNodePtr *argp2 ;
7176
 
  
7177
 
  SWIG_check_num_args("subscription_export",3,3)
7178
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_export",1,"subscriptionPtr");
7179
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("subscription_export",2,"xmlNodePtr");
7180
 
  if(!lua_isnumber(L,3)) SWIG_fail_arg("subscription_export",3,"int");
7181
 
  
7182
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7183
 
    SWIG_fail_ptr("subscription_export",1,SWIGTYPE_p_subscription);
7184
 
  }
7185
 
  
7186
 
  
7187
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_xmlNodePtr,0))){
7188
 
    SWIG_fail_ptr("subscription_export",2,SWIGTYPE_p_xmlNodePtr);
7189
 
  }
7190
 
  arg2 = *argp2;
7191
 
  
7192
 
  arg3 = (int)lua_tonumber(L, 3);
7193
 
  subscription_export(arg1,arg2,arg3);
7194
 
  
7195
 
  return SWIG_arg;
7196
 
  
7197
 
  if(0) SWIG_fail;
7198
 
  
7199
 
fail:
7200
 
  lua_error(L);
7201
 
  return SWIG_arg;
7202
 
}
7203
 
 
7204
 
 
7205
 
static int _wrap_subscription_to_xml(lua_State* L) {
7206
 
  int SWIG_arg = 0;
7207
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7208
 
  xmlNodePtr arg2 ;
7209
 
  xmlNodePtr *argp2 ;
7210
 
  
7211
 
  SWIG_check_num_args("subscription_to_xml",2,2)
7212
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_to_xml",1,"subscriptionPtr");
7213
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("subscription_to_xml",2,"xmlNodePtr");
7214
 
  
7215
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7216
 
    SWIG_fail_ptr("subscription_to_xml",1,SWIGTYPE_p_subscription);
7217
 
  }
7218
 
  
7219
 
  
7220
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_xmlNodePtr,0))){
7221
 
    SWIG_fail_ptr("subscription_to_xml",2,SWIGTYPE_p_xmlNodePtr);
7222
 
  }
7223
 
  arg2 = *argp2;
7224
 
  
7225
 
  subscription_to_xml(arg1,arg2);
7226
 
  
7227
 
  return SWIG_arg;
7228
 
  
7229
 
  if(0) SWIG_fail;
7230
 
  
7231
 
fail:
7232
 
  lua_error(L);
7233
 
  return SWIG_arg;
7234
 
}
7235
 
 
7236
 
 
7237
 
static int _wrap_subscription_can_be_updated(lua_State* L) {
7238
 
  int SWIG_arg = 0;
7239
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7240
 
  int result;
7241
 
  
7242
 
  SWIG_check_num_args("subscription_can_be_updated",1,1)
7243
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_can_be_updated",1,"subscriptionPtr");
7244
 
  
7245
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7246
 
    SWIG_fail_ptr("subscription_can_be_updated",1,SWIGTYPE_p_subscription);
7247
 
  }
7248
 
  
7249
 
  result = (int)subscription_can_be_updated(arg1);
7250
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7251
 
  return SWIG_arg;
7252
 
  
7253
 
  if(0) SWIG_fail;
7254
 
  
7255
 
fail:
7256
 
  lua_error(L);
7257
 
  return SWIG_arg;
7258
 
}
7259
 
 
7260
 
 
7261
 
static int _wrap_subscription_update(lua_State* L) {
7262
 
  int SWIG_arg = 0;
7263
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7264
 
  unsigned int arg2 ;
7265
 
  
7266
 
  SWIG_check_num_args("subscription_update",2,2)
7267
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_update",1,"subscriptionPtr");
7268
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("subscription_update",2,"unsigned int");
7269
 
  
7270
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7271
 
    SWIG_fail_ptr("subscription_update",1,SWIGTYPE_p_subscription);
7272
 
  }
7273
 
  
7274
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
7275
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
7276
 
  subscription_update(arg1,arg2);
7277
 
  
7278
 
  return SWIG_arg;
7279
 
  
7280
 
  if(0) SWIG_fail;
7281
 
  
7282
 
fail:
7283
 
  lua_error(L);
7284
 
  return SWIG_arg;
7285
 
}
7286
 
 
7287
 
 
7288
 
static int _wrap_subscription_auto_update(lua_State* L) {
7289
 
  int SWIG_arg = 0;
7290
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7291
 
  
7292
 
  SWIG_check_num_args("subscription_auto_update",1,1)
7293
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_auto_update",1,"subscriptionPtr");
7294
 
  
7295
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7296
 
    SWIG_fail_ptr("subscription_auto_update",1,SWIGTYPE_p_subscription);
7297
 
  }
7298
 
  
7299
 
  subscription_auto_update(arg1);
7300
 
  
7301
 
  return SWIG_arg;
7302
 
  
7303
 
  if(0) SWIG_fail;
7304
 
  
7305
 
fail:
7306
 
  lua_error(L);
7307
 
  return SWIG_arg;
7308
 
}
7309
 
 
7310
 
 
7311
 
static int _wrap_subscription_cancel_update(lua_State* L) {
7312
 
  int SWIG_arg = 0;
7313
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7314
 
  
7315
 
  SWIG_check_num_args("subscription_cancel_update",1,1)
7316
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_cancel_update",1,"subscriptionPtr");
7317
 
  
7318
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7319
 
    SWIG_fail_ptr("subscription_cancel_update",1,SWIGTYPE_p_subscription);
7320
 
  }
7321
 
  
7322
 
  subscription_cancel_update(arg1);
7323
 
  
7324
 
  return SWIG_arg;
7325
 
  
7326
 
  if(0) SWIG_fail;
7327
 
  
7328
 
fail:
7329
 
  lua_error(L);
7330
 
  return SWIG_arg;
7331
 
}
7332
 
 
7333
 
 
7334
 
static int _wrap_subscription_get_update_interval(lua_State* L) {
7335
 
  int SWIG_arg = 0;
7336
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7337
 
  int result;
7338
 
  
7339
 
  SWIG_check_num_args("subscription_get_update_interval",1,1)
7340
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_update_interval",1,"subscriptionPtr");
7341
 
  
7342
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7343
 
    SWIG_fail_ptr("subscription_get_update_interval",1,SWIGTYPE_p_subscription);
7344
 
  }
7345
 
  
7346
 
  result = (int)subscription_get_update_interval(arg1);
7347
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7348
 
  return SWIG_arg;
7349
 
  
7350
 
  if(0) SWIG_fail;
7351
 
  
7352
 
fail:
7353
 
  lua_error(L);
7354
 
  return SWIG_arg;
7355
 
}
7356
 
 
7357
 
 
7358
 
static int _wrap_subscription_set_update_interval(lua_State* L) {
7359
 
  int SWIG_arg = 0;
7360
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7361
 
  int arg2 ;
7362
 
  
7363
 
  SWIG_check_num_args("subscription_set_update_interval",2,2)
7364
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_update_interval",1,"subscriptionPtr");
7365
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("subscription_set_update_interval",2,"int");
7366
 
  
7367
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7368
 
    SWIG_fail_ptr("subscription_set_update_interval",1,SWIGTYPE_p_subscription);
7369
 
  }
7370
 
  
7371
 
  arg2 = (int)lua_tonumber(L, 2);
7372
 
  subscription_set_update_interval(arg1,arg2);
7373
 
  
7374
 
  return SWIG_arg;
7375
 
  
7376
 
  if(0) SWIG_fail;
7377
 
  
7378
 
fail:
7379
 
  lua_error(L);
7380
 
  return SWIG_arg;
7381
 
}
7382
 
 
7383
 
 
7384
 
static int _wrap_subscription_get_default_update_interval(lua_State* L) {
7385
 
  int SWIG_arg = 0;
7386
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7387
 
  unsigned int result;
7388
 
  
7389
 
  SWIG_check_num_args("subscription_get_default_update_interval",1,1)
7390
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_default_update_interval",1,"subscriptionPtr");
7391
 
  
7392
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7393
 
    SWIG_fail_ptr("subscription_get_default_update_interval",1,SWIGTYPE_p_subscription);
7394
 
  }
7395
 
  
7396
 
  result = (unsigned int)subscription_get_default_update_interval(arg1);
7397
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7398
 
  return SWIG_arg;
7399
 
  
7400
 
  if(0) SWIG_fail;
7401
 
  
7402
 
fail:
7403
 
  lua_error(L);
7404
 
  return SWIG_arg;
7405
 
}
7406
 
 
7407
 
 
7408
 
static int _wrap_subscription_set_default_update_interval(lua_State* L) {
7409
 
  int SWIG_arg = 0;
7410
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7411
 
  unsigned int arg2 ;
7412
 
  
7413
 
  SWIG_check_num_args("subscription_set_default_update_interval",2,2)
7414
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_default_update_interval",1,"subscriptionPtr");
7415
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("subscription_set_default_update_interval",2,"unsigned int");
7416
 
  
7417
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7418
 
    SWIG_fail_ptr("subscription_set_default_update_interval",1,SWIGTYPE_p_subscription);
7419
 
  }
7420
 
  
7421
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
7422
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
7423
 
  subscription_set_default_update_interval(arg1,arg2);
7424
 
  
7425
 
  return SWIG_arg;
7426
 
  
7427
 
  if(0) SWIG_fail;
7428
 
  
7429
 
fail:
7430
 
  lua_error(L);
7431
 
  return SWIG_arg;
7432
 
}
7433
 
 
7434
 
 
7435
 
static int _wrap_subscription_reset_update_counter(lua_State* L) {
7436
 
  int SWIG_arg = 0;
7437
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7438
 
  GTimeVal *arg2 = (GTimeVal *) 0 ;
7439
 
  
7440
 
  SWIG_check_num_args("subscription_reset_update_counter",2,2)
7441
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_reset_update_counter",1,"subscriptionPtr");
7442
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("subscription_reset_update_counter",2,"GTimeVal *");
7443
 
  
7444
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7445
 
    SWIG_fail_ptr("subscription_reset_update_counter",1,SWIGTYPE_p_subscription);
7446
 
  }
7447
 
  
7448
 
  
7449
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GTimeVal,0))){
7450
 
    SWIG_fail_ptr("subscription_reset_update_counter",2,SWIGTYPE_p_GTimeVal);
7451
 
  }
7452
 
  
7453
 
  subscription_reset_update_counter(arg1,arg2);
7454
 
  
7455
 
  return SWIG_arg;
7456
 
  
7457
 
  if(0) SWIG_fail;
7458
 
  
7459
 
fail:
7460
 
  lua_error(L);
7461
 
  return SWIG_arg;
7462
 
}
7463
 
 
7464
 
 
7465
 
static int _wrap_subscription_update_favicon(lua_State* L) {
7466
 
  int SWIG_arg = 0;
7467
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7468
 
  
7469
 
  SWIG_check_num_args("subscription_update_favicon",1,1)
7470
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_update_favicon",1,"subscriptionPtr");
7471
 
  
7472
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7473
 
    SWIG_fail_ptr("subscription_update_favicon",1,SWIGTYPE_p_subscription);
7474
 
  }
7475
 
  
7476
 
  subscription_update_favicon(arg1);
7477
 
  
7478
 
  return SWIG_arg;
7479
 
  
7480
 
  if(0) SWIG_fail;
7481
 
  
7482
 
fail:
7483
 
  lua_error(L);
7484
 
  return SWIG_arg;
7485
 
}
7486
 
 
7487
 
 
7488
 
static int _wrap_subscription_get_source(lua_State* L) {
7489
 
  int SWIG_arg = 0;
7490
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7491
 
  char *result = 0 ;
7492
 
  
7493
 
  SWIG_check_num_args("subscription_get_source",1,1)
7494
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_source",1,"subscriptionPtr");
7495
 
  
7496
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7497
 
    SWIG_fail_ptr("subscription_get_source",1,SWIGTYPE_p_subscription);
7498
 
  }
7499
 
  
7500
 
  result = (char *)subscription_get_source(arg1);
7501
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
7502
 
  return SWIG_arg;
7503
 
  
7504
 
  if(0) SWIG_fail;
7505
 
  
7506
 
fail:
7507
 
  lua_error(L);
7508
 
  return SWIG_arg;
7509
 
}
7510
 
 
7511
 
 
7512
 
static int _wrap_subscription_set_source(lua_State* L) {
7513
 
  int SWIG_arg = 0;
7514
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7515
 
  char *arg2 = (char *) 0 ;
7516
 
  
7517
 
  SWIG_check_num_args("subscription_set_source",2,2)
7518
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_source",1,"subscriptionPtr");
7519
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("subscription_set_source",2,"char const *");
7520
 
  
7521
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7522
 
    SWIG_fail_ptr("subscription_set_source",1,SWIGTYPE_p_subscription);
7523
 
  }
7524
 
  
7525
 
  arg2 = (char *)lua_tostring(L, 2);
7526
 
  subscription_set_source(arg1,(char const *)arg2);
7527
 
  
7528
 
  return SWIG_arg;
7529
 
  
7530
 
  if(0) SWIG_fail;
7531
 
  
7532
 
fail:
7533
 
  lua_error(L);
7534
 
  return SWIG_arg;
7535
 
}
7536
 
 
7537
 
 
7538
 
static int _wrap_subscription_get_orig_source(lua_State* L) {
7539
 
  int SWIG_arg = 0;
7540
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7541
 
  char *result = 0 ;
7542
 
  
7543
 
  SWIG_check_num_args("subscription_get_orig_source",1,1)
7544
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_orig_source",1,"subscriptionPtr");
7545
 
  
7546
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7547
 
    SWIG_fail_ptr("subscription_get_orig_source",1,SWIGTYPE_p_subscription);
7548
 
  }
7549
 
  
7550
 
  result = (char *)subscription_get_orig_source(arg1);
7551
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
7552
 
  return SWIG_arg;
7553
 
  
7554
 
  if(0) SWIG_fail;
7555
 
  
7556
 
fail:
7557
 
  lua_error(L);
7558
 
  return SWIG_arg;
7559
 
}
7560
 
 
7561
 
 
7562
 
static int _wrap_subscription_set_orig_source(lua_State* L) {
7563
 
  int SWIG_arg = 0;
7564
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7565
 
  char *arg2 = (char *) 0 ;
7566
 
  
7567
 
  SWIG_check_num_args("subscription_set_orig_source",2,2)
7568
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_orig_source",1,"subscriptionPtr");
7569
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("subscription_set_orig_source",2,"char const *");
7570
 
  
7571
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7572
 
    SWIG_fail_ptr("subscription_set_orig_source",1,SWIGTYPE_p_subscription);
7573
 
  }
7574
 
  
7575
 
  arg2 = (char *)lua_tostring(L, 2);
7576
 
  subscription_set_orig_source(arg1,(char const *)arg2);
7577
 
  
7578
 
  return SWIG_arg;
7579
 
  
7580
 
  if(0) SWIG_fail;
7581
 
  
7582
 
fail:
7583
 
  lua_error(L);
7584
 
  return SWIG_arg;
7585
 
}
7586
 
 
7587
 
 
7588
 
static int _wrap_subscription_get_homepage(lua_State* L) {
7589
 
  int SWIG_arg = 0;
7590
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7591
 
  char *result = 0 ;
7592
 
  
7593
 
  SWIG_check_num_args("subscription_get_homepage",1,1)
7594
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_homepage",1,"subscriptionPtr");
7595
 
  
7596
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7597
 
    SWIG_fail_ptr("subscription_get_homepage",1,SWIGTYPE_p_subscription);
7598
 
  }
7599
 
  
7600
 
  result = (char *)subscription_get_homepage(arg1);
7601
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
7602
 
  return SWIG_arg;
7603
 
  
7604
 
  if(0) SWIG_fail;
7605
 
  
7606
 
fail:
7607
 
  lua_error(L);
7608
 
  return SWIG_arg;
7609
 
}
7610
 
 
7611
 
 
7612
 
static int _wrap_subscription_set_homepage(lua_State* L) {
7613
 
  int SWIG_arg = 0;
7614
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7615
 
  char *arg2 = (char *) 0 ;
7616
 
  
7617
 
  SWIG_check_num_args("subscription_set_homepage",2,2)
7618
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_homepage",1,"subscriptionPtr");
7619
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("subscription_set_homepage",2,"char const *");
7620
 
  
7621
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7622
 
    SWIG_fail_ptr("subscription_set_homepage",1,SWIGTYPE_p_subscription);
7623
 
  }
7624
 
  
7625
 
  arg2 = (char *)lua_tostring(L, 2);
7626
 
  subscription_set_homepage(arg1,(char const *)arg2);
7627
 
  
7628
 
  return SWIG_arg;
7629
 
  
7630
 
  if(0) SWIG_fail;
7631
 
  
7632
 
fail:
7633
 
  lua_error(L);
7634
 
  return SWIG_arg;
7635
 
}
7636
 
 
7637
 
 
7638
 
static int _wrap_subscription_get_filter(lua_State* L) {
7639
 
  int SWIG_arg = 0;
7640
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7641
 
  char *result = 0 ;
7642
 
  
7643
 
  SWIG_check_num_args("subscription_get_filter",1,1)
7644
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_get_filter",1,"subscriptionPtr");
7645
 
  
7646
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7647
 
    SWIG_fail_ptr("subscription_get_filter",1,SWIGTYPE_p_subscription);
7648
 
  }
7649
 
  
7650
 
  result = (char *)subscription_get_filter(arg1);
7651
 
  lua_pushstring(L,(const char*)result); SWIG_arg++;
7652
 
  return SWIG_arg;
7653
 
  
7654
 
  if(0) SWIG_fail;
7655
 
  
7656
 
fail:
7657
 
  lua_error(L);
7658
 
  return SWIG_arg;
7659
 
}
7660
 
 
7661
 
 
7662
 
static int _wrap_subscription_set_filter(lua_State* L) {
7663
 
  int SWIG_arg = 0;
7664
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7665
 
  char *arg2 = (char *) 0 ;
7666
 
  
7667
 
  SWIG_check_num_args("subscription_set_filter",2,2)
7668
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_set_filter",1,"subscriptionPtr");
7669
 
  if(!lua_isstring(L,2)) SWIG_fail_arg("subscription_set_filter",2,"char const *");
7670
 
  
7671
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7672
 
    SWIG_fail_ptr("subscription_set_filter",1,SWIGTYPE_p_subscription);
7673
 
  }
7674
 
  
7675
 
  arg2 = (char *)lua_tostring(L, 2);
7676
 
  subscription_set_filter(arg1,(char const *)arg2);
7677
 
  
7678
 
  return SWIG_arg;
7679
 
  
7680
 
  if(0) SWIG_fail;
7681
 
  
7682
 
fail:
7683
 
  lua_error(L);
7684
 
  return SWIG_arg;
7685
 
}
7686
 
 
7687
 
 
7688
 
static int _wrap_subscription_free(lua_State* L) {
7689
 
  int SWIG_arg = 0;
7690
 
  subscriptionPtr arg1 = (subscriptionPtr) 0 ;
7691
 
  
7692
 
  SWIG_check_num_args("subscription_free",1,1)
7693
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("subscription_free",1,"subscriptionPtr");
7694
 
  
7695
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_subscription,0))){
7696
 
    SWIG_fail_ptr("subscription_free",1,SWIGTYPE_p_subscription);
7697
 
  }
7698
 
  
7699
 
  subscription_free(arg1);
7700
 
  
7701
 
  return SWIG_arg;
7702
 
  
7703
 
  if(0) SWIG_fail;
7704
 
  
7705
 
fail:
7706
 
  lua_error(L);
7707
 
  return SWIG_arg;
7708
 
}
7709
 
 
7710
 
 
7711
 
static int _wrap_feedstore_set(lua_State* L) {
7712
 
  int SWIG_arg = 0;
7713
 
  GtkTreeStore *arg1 = (GtkTreeStore *) 0 ;
7714
 
  
7715
 
  SWIG_check_num_args("feedstore",1,1)
7716
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("feedstore",1,"GtkTreeStore *");
7717
 
  
7718
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeStore,0))){
7719
 
    SWIG_fail_ptr("feedstore_set",1,SWIGTYPE_p_GtkTreeStore);
7720
 
  }
7721
 
  
7722
 
  feedstore = arg1;
7723
 
  
7724
 
  return SWIG_arg;
7725
 
  
7726
 
  if(0) SWIG_fail;
7727
 
  
7728
 
fail:
7729
 
  lua_error(L);
7730
 
  return SWIG_arg;
7731
 
}
7732
 
 
7733
 
 
7734
 
static int _wrap_feedstore_get(lua_State* L) {
7735
 
  int SWIG_arg = 0;
7736
 
  GtkTreeStore *result = 0 ;
7737
 
  
7738
 
  SWIG_check_num_args("feedstore",0,0)
7739
 
  result = (GtkTreeStore *)feedstore;
7740
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GtkTreeStore,0); SWIG_arg++; 
7741
 
  return SWIG_arg;
7742
 
  
7743
 
  if(0) SWIG_fail;
7744
 
  
7745
 
fail:
7746
 
  lua_error(L);
7747
 
  return SWIG_arg;
7748
 
}
7749
 
 
7750
 
 
7751
 
static int _wrap_feedlist_reduced_unread_set(lua_State* L) {
7752
 
  int SWIG_arg = 0;
7753
 
  int arg1 ;
7754
 
  
7755
 
  SWIG_check_num_args("feedlist_reduced_unread",1,1)
7756
 
  if(!lua_isnumber(L,1)) SWIG_fail_arg("feedlist_reduced_unread",1,"int");
7757
 
  arg1 = (int)lua_tonumber(L, 1);
7758
 
  feedlist_reduced_unread = arg1;
7759
 
  
7760
 
  return SWIG_arg;
7761
 
  
7762
 
  if(0) SWIG_fail;
7763
 
  
7764
 
fail:
7765
 
  lua_error(L);
7766
 
  return SWIG_arg;
7767
 
}
7768
 
 
7769
 
 
7770
 
static int _wrap_feedlist_reduced_unread_get(lua_State* L) {
7771
 
  int SWIG_arg = 0;
7772
 
  int result;
7773
 
  
7774
 
  SWIG_check_num_args("feedlist_reduced_unread",0,0)
7775
 
  result = (int)feedlist_reduced_unread;
7776
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7777
 
  return SWIG_arg;
7778
 
  
7779
 
  if(0) SWIG_fail;
7780
 
  
7781
 
fail:
7782
 
  lua_error(L);
7783
 
  return SWIG_arg;
7784
 
}
7785
 
 
7786
 
 
7787
 
static int _wrap_ui_feedlist_select(lua_State* L) {
7788
 
  int SWIG_arg = 0;
7789
 
  nodePtr arg1 = (nodePtr) 0 ;
7790
 
  
7791
 
  SWIG_check_num_args("ui_feedlist_select",1,1)
7792
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_feedlist_select",1,"nodePtr");
7793
 
  
7794
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
7795
 
    SWIG_fail_ptr("ui_feedlist_select",1,SWIGTYPE_p_node);
7796
 
  }
7797
 
  
7798
 
  ui_feedlist_select(arg1);
7799
 
  
7800
 
  return SWIG_arg;
7801
 
  
7802
 
  if(0) SWIG_fail;
7803
 
  
7804
 
fail:
7805
 
  lua_error(L);
7806
 
  return SWIG_arg;
7807
 
}
7808
 
 
7809
 
 
7810
 
static int _wrap_ui_feedlist_init(lua_State* L) {
7811
 
  int SWIG_arg = 0;
7812
 
  GtkTreeView *arg1 = (GtkTreeView *) 0 ;
7813
 
  
7814
 
  SWIG_check_num_args("ui_feedlist_init",1,1)
7815
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_feedlist_init",1,"GtkTreeView *");
7816
 
  
7817
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeView,0))){
7818
 
    SWIG_fail_ptr("ui_feedlist_init",1,SWIGTYPE_p_GtkTreeView);
7819
 
  }
7820
 
  
7821
 
  ui_feedlist_init(arg1);
7822
 
  
7823
 
  return SWIG_arg;
7824
 
  
7825
 
  if(0) SWIG_fail;
7826
 
  
7827
 
fail:
7828
 
  lua_error(L);
7829
 
  return SWIG_arg;
7830
 
}
7831
 
 
7832
 
 
7833
 
static int _wrap_ui_feedlist_delete_prompt(lua_State* L) {
7834
 
  int SWIG_arg = 0;
7835
 
  nodePtr arg1 = (nodePtr) 0 ;
7836
 
  
7837
 
  SWIG_check_num_args("ui_feedlist_delete_prompt",1,1)
7838
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_feedlist_delete_prompt",1,"nodePtr");
7839
 
  
7840
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
7841
 
    SWIG_fail_ptr("ui_feedlist_delete_prompt",1,SWIGTYPE_p_node);
7842
 
  }
7843
 
  
7844
 
  ui_feedlist_delete_prompt(arg1);
7845
 
  
7846
 
  return SWIG_arg;
7847
 
  
7848
 
  if(0) SWIG_fail;
7849
 
  
7850
 
fail:
7851
 
  lua_error(L);
7852
 
  return SWIG_arg;
7853
 
}
7854
 
 
7855
 
 
7856
 
static int _wrap_on_newbtn_clicked(lua_State* L) {
7857
 
  int SWIG_arg = 0;
7858
 
  GtkButton *arg1 = (GtkButton *) 0 ;
7859
 
  gpointer arg2 ;
7860
 
  gpointer *argp2 ;
7861
 
  
7862
 
  SWIG_check_num_args("on_newbtn_clicked",2,2)
7863
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_newbtn_clicked",1,"GtkButton *");
7864
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_newbtn_clicked",2,"gpointer");
7865
 
  
7866
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkButton,0))){
7867
 
    SWIG_fail_ptr("on_newbtn_clicked",1,SWIGTYPE_p_GtkButton);
7868
 
  }
7869
 
  
7870
 
  
7871
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
7872
 
    SWIG_fail_ptr("on_newbtn_clicked",2,SWIGTYPE_p_gpointer);
7873
 
  }
7874
 
  arg2 = *argp2;
7875
 
  
7876
 
  on_newbtn_clicked(arg1,arg2);
7877
 
  
7878
 
  return SWIG_arg;
7879
 
  
7880
 
  if(0) SWIG_fail;
7881
 
  
7882
 
fail:
7883
 
  lua_error(L);
7884
 
  return SWIG_arg;
7885
 
}
7886
 
 
7887
 
 
7888
 
static int _wrap_on_menu_delete(lua_State* L) {
7889
 
  int SWIG_arg = 0;
7890
 
  GtkWidget *arg1 = (GtkWidget *) 0 ;
7891
 
  gpointer arg2 ;
7892
 
  gpointer *argp2 ;
7893
 
  
7894
 
  SWIG_check_num_args("on_menu_delete",2,2)
7895
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_delete",1,"GtkWidget *");
7896
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_delete",2,"gpointer");
7897
 
  
7898
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkWidget,0))){
7899
 
    SWIG_fail_ptr("on_menu_delete",1,SWIGTYPE_p_GtkWidget);
7900
 
  }
7901
 
  
7902
 
  
7903
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
7904
 
    SWIG_fail_ptr("on_menu_delete",2,SWIGTYPE_p_gpointer);
7905
 
  }
7906
 
  arg2 = *argp2;
7907
 
  
7908
 
  on_menu_delete(arg1,arg2);
7909
 
  
7910
 
  return SWIG_arg;
7911
 
  
7912
 
  if(0) SWIG_fail;
7913
 
  
7914
 
fail:
7915
 
  lua_error(L);
7916
 
  return SWIG_arg;
7917
 
}
7918
 
 
7919
 
 
7920
 
static int _wrap_on_menu_update(lua_State* L) {
7921
 
  int SWIG_arg = 0;
7922
 
  
7923
 
  SWIG_check_num_args("on_menu_update",0,0)
7924
 
  on_menu_update();
7925
 
  
7926
 
  return SWIG_arg;
7927
 
  
7928
 
  if(0) SWIG_fail;
7929
 
  
7930
 
fail:
7931
 
  lua_error(L);
7932
 
  return SWIG_arg;
7933
 
}
7934
 
 
7935
 
 
7936
 
static int _wrap_on_menu_update_all(lua_State* L) {
7937
 
  int SWIG_arg = 0;
7938
 
  
7939
 
  SWIG_check_num_args("on_menu_update_all",0,0)
7940
 
  on_menu_update_all();
7941
 
  
7942
 
  return SWIG_arg;
7943
 
  
7944
 
  if(0) SWIG_fail;
7945
 
  
7946
 
fail:
7947
 
  lua_error(L);
7948
 
  return SWIG_arg;
7949
 
}
7950
 
 
7951
 
 
7952
 
static int _wrap_on_menu_allread(lua_State* L) {
7953
 
  int SWIG_arg = 0;
7954
 
  GtkWidget *arg1 = (GtkWidget *) 0 ;
7955
 
  gpointer arg2 ;
7956
 
  gpointer *argp2 ;
7957
 
  
7958
 
  SWIG_check_num_args("on_menu_allread",2,2)
7959
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_allread",1,"GtkWidget *");
7960
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_allread",2,"gpointer");
7961
 
  
7962
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkWidget,0))){
7963
 
    SWIG_fail_ptr("on_menu_allread",1,SWIGTYPE_p_GtkWidget);
7964
 
  }
7965
 
  
7966
 
  
7967
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
7968
 
    SWIG_fail_ptr("on_menu_allread",2,SWIGTYPE_p_gpointer);
7969
 
  }
7970
 
  arg2 = *argp2;
7971
 
  
7972
 
  on_menu_allread(arg1,arg2);
7973
 
  
7974
 
  return SWIG_arg;
7975
 
  
7976
 
  if(0) SWIG_fail;
7977
 
  
7978
 
fail:
7979
 
  lua_error(L);
7980
 
  return SWIG_arg;
7981
 
}
7982
 
 
7983
 
 
7984
 
static int _wrap_on_menu_allfeedsread(lua_State* L) {
7985
 
  int SWIG_arg = 0;
7986
 
  GtkWidget *arg1 = (GtkWidget *) 0 ;
7987
 
  gpointer arg2 ;
7988
 
  gpointer *argp2 ;
7989
 
  
7990
 
  SWIG_check_num_args("on_menu_allfeedsread",2,2)
7991
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_allfeedsread",1,"GtkWidget *");
7992
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_allfeedsread",2,"gpointer");
7993
 
  
7994
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkWidget,0))){
7995
 
    SWIG_fail_ptr("on_menu_allfeedsread",1,SWIGTYPE_p_GtkWidget);
7996
 
  }
7997
 
  
7998
 
  
7999
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8000
 
    SWIG_fail_ptr("on_menu_allfeedsread",2,SWIGTYPE_p_gpointer);
8001
 
  }
8002
 
  arg2 = *argp2;
8003
 
  
8004
 
  on_menu_allfeedsread(arg1,arg2);
8005
 
  
8006
 
  return SWIG_arg;
8007
 
  
8008
 
  if(0) SWIG_fail;
8009
 
  
8010
 
fail:
8011
 
  lua_error(L);
8012
 
  return SWIG_arg;
8013
 
}
8014
 
 
8015
 
 
8016
 
static int _wrap_on_menu_properties(lua_State* L) {
8017
 
  int SWIG_arg = 0;
8018
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8019
 
  gpointer arg2 ;
8020
 
  gpointer *argp2 ;
8021
 
  
8022
 
  SWIG_check_num_args("on_menu_properties",2,2)
8023
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_properties",1,"GtkMenuItem *");
8024
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_properties",2,"gpointer");
8025
 
  
8026
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8027
 
    SWIG_fail_ptr("on_menu_properties",1,SWIGTYPE_p_GtkMenuItem);
8028
 
  }
8029
 
  
8030
 
  
8031
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8032
 
    SWIG_fail_ptr("on_menu_properties",2,SWIGTYPE_p_gpointer);
8033
 
  }
8034
 
  arg2 = *argp2;
8035
 
  
8036
 
  on_menu_properties(arg1,arg2);
8037
 
  
8038
 
  return SWIG_arg;
8039
 
  
8040
 
  if(0) SWIG_fail;
8041
 
  
8042
 
fail:
8043
 
  lua_error(L);
8044
 
  return SWIG_arg;
8045
 
}
8046
 
 
8047
 
 
8048
 
static int _wrap_on_menu_feed_new(lua_State* L) {
8049
 
  int SWIG_arg = 0;
8050
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8051
 
  gpointer arg2 ;
8052
 
  gpointer *argp2 ;
8053
 
  
8054
 
  SWIG_check_num_args("on_menu_feed_new",2,2)
8055
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_feed_new",1,"GtkMenuItem *");
8056
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_feed_new",2,"gpointer");
8057
 
  
8058
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8059
 
    SWIG_fail_ptr("on_menu_feed_new",1,SWIGTYPE_p_GtkMenuItem);
8060
 
  }
8061
 
  
8062
 
  
8063
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8064
 
    SWIG_fail_ptr("on_menu_feed_new",2,SWIGTYPE_p_gpointer);
8065
 
  }
8066
 
  arg2 = *argp2;
8067
 
  
8068
 
  on_menu_feed_new(arg1,arg2);
8069
 
  
8070
 
  return SWIG_arg;
8071
 
  
8072
 
  if(0) SWIG_fail;
8073
 
  
8074
 
fail:
8075
 
  lua_error(L);
8076
 
  return SWIG_arg;
8077
 
}
8078
 
 
8079
 
 
8080
 
static int _wrap_on_menu_folder_new(lua_State* L) {
8081
 
  int SWIG_arg = 0;
8082
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8083
 
  gpointer arg2 ;
8084
 
  gpointer *argp2 ;
8085
 
  
8086
 
  SWIG_check_num_args("on_menu_folder_new",2,2)
8087
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_menu_folder_new",1,"GtkMenuItem *");
8088
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_menu_folder_new",2,"gpointer");
8089
 
  
8090
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8091
 
    SWIG_fail_ptr("on_menu_folder_new",1,SWIGTYPE_p_GtkMenuItem);
8092
 
  }
8093
 
  
8094
 
  
8095
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8096
 
    SWIG_fail_ptr("on_menu_folder_new",2,SWIGTYPE_p_gpointer);
8097
 
  }
8098
 
  arg2 = *argp2;
8099
 
  
8100
 
  on_menu_folder_new(arg1,arg2);
8101
 
  
8102
 
  return SWIG_arg;
8103
 
  
8104
 
  if(0) SWIG_fail;
8105
 
  
8106
 
fail:
8107
 
  lua_error(L);
8108
 
  return SWIG_arg;
8109
 
}
8110
 
 
8111
 
 
8112
 
static int _wrap_on_new_plugin_activate(lua_State* L) {
8113
 
  int SWIG_arg = 0;
8114
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8115
 
  gpointer arg2 ;
8116
 
  gpointer *argp2 ;
8117
 
  
8118
 
  SWIG_check_num_args("on_new_plugin_activate",2,2)
8119
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_new_plugin_activate",1,"GtkMenuItem *");
8120
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_new_plugin_activate",2,"gpointer");
8121
 
  
8122
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8123
 
    SWIG_fail_ptr("on_new_plugin_activate",1,SWIGTYPE_p_GtkMenuItem);
8124
 
  }
8125
 
  
8126
 
  
8127
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8128
 
    SWIG_fail_ptr("on_new_plugin_activate",2,SWIGTYPE_p_gpointer);
8129
 
  }
8130
 
  arg2 = *argp2;
8131
 
  
8132
 
  on_new_plugin_activate(arg1,arg2);
8133
 
  
8134
 
  return SWIG_arg;
8135
 
  
8136
 
  if(0) SWIG_fail;
8137
 
  
8138
 
fail:
8139
 
  lua_error(L);
8140
 
  return SWIG_arg;
8141
 
}
8142
 
 
8143
 
 
8144
 
static int _wrap_on_new_newsbin_activate(lua_State* L) {
8145
 
  int SWIG_arg = 0;
8146
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8147
 
  gpointer arg2 ;
8148
 
  gpointer *argp2 ;
8149
 
  
8150
 
  SWIG_check_num_args("on_new_newsbin_activate",2,2)
8151
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_new_newsbin_activate",1,"GtkMenuItem *");
8152
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_new_newsbin_activate",2,"gpointer");
8153
 
  
8154
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8155
 
    SWIG_fail_ptr("on_new_newsbin_activate",1,SWIGTYPE_p_GtkMenuItem);
8156
 
  }
8157
 
  
8158
 
  
8159
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8160
 
    SWIG_fail_ptr("on_new_newsbin_activate",2,SWIGTYPE_p_gpointer);
8161
 
  }
8162
 
  arg2 = *argp2;
8163
 
  
8164
 
  on_new_newsbin_activate(arg1,arg2);
8165
 
  
8166
 
  return SWIG_arg;
8167
 
  
8168
 
  if(0) SWIG_fail;
8169
 
  
8170
 
fail:
8171
 
  lua_error(L);
8172
 
  return SWIG_arg;
8173
 
}
8174
 
 
8175
 
 
8176
 
static int _wrap_on_feedlist_reduced_activate(lua_State* L) {
8177
 
  int SWIG_arg = 0;
8178
 
  GtkToggleAction *arg1 = (GtkToggleAction *) 0 ;
8179
 
  gpointer arg2 ;
8180
 
  gpointer *argp2 ;
8181
 
  
8182
 
  SWIG_check_num_args("on_feedlist_reduced_activate",2,2)
8183
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_feedlist_reduced_activate",1,"GtkToggleAction *");
8184
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_feedlist_reduced_activate",2,"gpointer");
8185
 
  
8186
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkToggleAction,0))){
8187
 
    SWIG_fail_ptr("on_feedlist_reduced_activate",1,SWIGTYPE_p_GtkToggleAction);
8188
 
  }
8189
 
  
8190
 
  
8191
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8192
 
    SWIG_fail_ptr("on_feedlist_reduced_activate",2,SWIGTYPE_p_gpointer);
8193
 
  }
8194
 
  arg2 = *argp2;
8195
 
  
8196
 
  on_feedlist_reduced_activate(arg1,arg2);
8197
 
  
8198
 
  return SWIG_arg;
8199
 
  
8200
 
  if(0) SWIG_fail;
8201
 
  
8202
 
fail:
8203
 
  lua_error(L);
8204
 
  return SWIG_arg;
8205
 
}
8206
 
 
8207
 
 
8208
 
static int _wrap_ui_itemlist_new(lua_State* L) {
8209
 
  int SWIG_arg = 0;
8210
 
  GtkWidget *arg1 = (GtkWidget *) 0 ;
8211
 
  GtkWidget *result = 0 ;
8212
 
  
8213
 
  SWIG_check_num_args("ui_itemlist_new",1,1)
8214
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_new",1,"GtkWidget *");
8215
 
  
8216
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkWidget,0))){
8217
 
    SWIG_fail_ptr("ui_itemlist_new",1,SWIGTYPE_p_GtkWidget);
8218
 
  }
8219
 
  
8220
 
  result = (GtkWidget *)ui_itemlist_new(arg1);
8221
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GtkWidget,0); SWIG_arg++; 
8222
 
  return SWIG_arg;
8223
 
  
8224
 
  if(0) SWIG_fail;
8225
 
  
8226
 
fail:
8227
 
  lua_error(L);
8228
 
  return SWIG_arg;
8229
 
}
8230
 
 
8231
 
 
8232
 
static int _wrap_ui_itemlist_destroy(lua_State* L) {
8233
 
  int SWIG_arg = 0;
8234
 
  
8235
 
  SWIG_check_num_args("ui_itemlist_destroy",0,0)
8236
 
  ui_itemlist_destroy();
8237
 
  
8238
 
  return SWIG_arg;
8239
 
  
8240
 
  if(0) SWIG_fail;
8241
 
  
8242
 
fail:
8243
 
  lua_error(L);
8244
 
  return SWIG_arg;
8245
 
}
8246
 
 
8247
 
 
8248
 
static int _wrap_ui_itemlist_contains_item(lua_State* L) {
8249
 
  int SWIG_arg = 0;
8250
 
  gulong arg1 ;
8251
 
  gulong *argp1 ;
8252
 
  int result;
8253
 
  
8254
 
  SWIG_check_num_args("ui_itemlist_contains_item",1,1)
8255
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("ui_itemlist_contains_item",1,"gulong");
8256
 
  
8257
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_gulong,0))){
8258
 
    SWIG_fail_ptr("ui_itemlist_contains_item",1,SWIGTYPE_p_gulong);
8259
 
  }
8260
 
  arg1 = *argp1;
8261
 
  
8262
 
  result = (int)ui_itemlist_contains_item(arg1);
8263
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
8264
 
  return SWIG_arg;
8265
 
  
8266
 
  if(0) SWIG_fail;
8267
 
  
8268
 
fail:
8269
 
  lua_error(L);
8270
 
  return SWIG_arg;
8271
 
}
8272
 
 
8273
 
 
8274
 
static int _wrap_ui_itemlist_set_sort_column(lua_State* L) {
8275
 
  int SWIG_arg = 0;
8276
 
  nodeViewSortType arg1 ;
8277
 
  int arg2 ;
8278
 
  nodeViewSortType *argp1 ;
8279
 
  
8280
 
  SWIG_check_num_args("ui_itemlist_set_sort_column",2,2)
8281
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("ui_itemlist_set_sort_column",1,"nodeViewSortType");
8282
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("ui_itemlist_set_sort_column",2,"int");
8283
 
  
8284
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_nodeViewSortType,0))){
8285
 
    SWIG_fail_ptr("ui_itemlist_set_sort_column",1,SWIGTYPE_p_nodeViewSortType);
8286
 
  }
8287
 
  arg1 = *argp1;
8288
 
  
8289
 
  arg2 = (int)lua_tonumber(L, 2);
8290
 
  ui_itemlist_set_sort_column(arg1,arg2);
8291
 
  
8292
 
  return SWIG_arg;
8293
 
  
8294
 
  if(0) SWIG_fail;
8295
 
  
8296
 
fail:
8297
 
  lua_error(L);
8298
 
  return SWIG_arg;
8299
 
}
8300
 
 
8301
 
 
8302
 
static int _wrap_ui_itemlist_reset_tree_store(lua_State* L) {
8303
 
  int SWIG_arg = 0;
8304
 
  
8305
 
  SWIG_check_num_args("ui_itemlist_reset_tree_store",0,0)
8306
 
  ui_itemlist_reset_tree_store();
8307
 
  
8308
 
  return SWIG_arg;
8309
 
  
8310
 
  if(0) SWIG_fail;
8311
 
  
8312
 
fail:
8313
 
  lua_error(L);
8314
 
  return SWIG_arg;
8315
 
}
8316
 
 
8317
 
 
8318
 
static int _wrap_ui_itemlist_prefocus(lua_State* L) {
8319
 
  int SWIG_arg = 0;
8320
 
  
8321
 
  SWIG_check_num_args("ui_itemlist_prefocus",0,0)
8322
 
  ui_itemlist_prefocus();
8323
 
  
8324
 
  return SWIG_arg;
8325
 
  
8326
 
  if(0) SWIG_fail;
8327
 
  
8328
 
fail:
8329
 
  lua_error(L);
8330
 
  return SWIG_arg;
8331
 
}
8332
 
 
8333
 
 
8334
 
static int _wrap_ui_itemlist_select(lua_State* L) {
8335
 
  int SWIG_arg = 0;
8336
 
  itemPtr arg1 = (itemPtr) 0 ;
8337
 
  
8338
 
  SWIG_check_num_args("ui_itemlist_select",1,1)
8339
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_select",1,"itemPtr");
8340
 
  
8341
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8342
 
    SWIG_fail_ptr("ui_itemlist_select",1,SWIGTYPE_p_item);
8343
 
  }
8344
 
  
8345
 
  ui_itemlist_select(arg1);
8346
 
  
8347
 
  return SWIG_arg;
8348
 
  
8349
 
  if(0) SWIG_fail;
8350
 
  
8351
 
fail:
8352
 
  lua_error(L);
8353
 
  return SWIG_arg;
8354
 
}
8355
 
 
8356
 
 
8357
 
static int _wrap_ui_itemlist_add_item(lua_State* L) {
8358
 
  int SWIG_arg = 0;
8359
 
  itemPtr arg1 = (itemPtr) 0 ;
8360
 
  
8361
 
  SWIG_check_num_args("ui_itemlist_add_item",1,1)
8362
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_add_item",1,"itemPtr");
8363
 
  
8364
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8365
 
    SWIG_fail_ptr("ui_itemlist_add_item",1,SWIGTYPE_p_item);
8366
 
  }
8367
 
  
8368
 
  ui_itemlist_add_item(arg1);
8369
 
  
8370
 
  return SWIG_arg;
8371
 
  
8372
 
  if(0) SWIG_fail;
8373
 
  
8374
 
fail:
8375
 
  lua_error(L);
8376
 
  return SWIG_arg;
8377
 
}
8378
 
 
8379
 
 
8380
 
static int _wrap_ui_itemlist_remove_item(lua_State* L) {
8381
 
  int SWIG_arg = 0;
8382
 
  itemPtr arg1 = (itemPtr) 0 ;
8383
 
  
8384
 
  SWIG_check_num_args("ui_itemlist_remove_item",1,1)
8385
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_remove_item",1,"itemPtr");
8386
 
  
8387
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8388
 
    SWIG_fail_ptr("ui_itemlist_remove_item",1,SWIGTYPE_p_item);
8389
 
  }
8390
 
  
8391
 
  ui_itemlist_remove_item(arg1);
8392
 
  
8393
 
  return SWIG_arg;
8394
 
  
8395
 
  if(0) SWIG_fail;
8396
 
  
8397
 
fail:
8398
 
  lua_error(L);
8399
 
  return SWIG_arg;
8400
 
}
8401
 
 
8402
 
 
8403
 
static int _wrap_ui_itemlist_enable_favicon_column(lua_State* L) {
8404
 
  int SWIG_arg = 0;
8405
 
  int arg1 ;
8406
 
  
8407
 
  SWIG_check_num_args("ui_itemlist_enable_favicon_column",1,1)
8408
 
  if(!lua_isnumber(L,1)) SWIG_fail_arg("ui_itemlist_enable_favicon_column",1,"int");
8409
 
  arg1 = (int)lua_tonumber(L, 1);
8410
 
  ui_itemlist_enable_favicon_column(arg1);
8411
 
  
8412
 
  return SWIG_arg;
8413
 
  
8414
 
  if(0) SWIG_fail;
8415
 
  
8416
 
fail:
8417
 
  lua_error(L);
8418
 
  return SWIG_arg;
8419
 
}
8420
 
 
8421
 
 
8422
 
static int _wrap_ui_itemlist_enable_encicon_column(lua_State* L) {
8423
 
  int SWIG_arg = 0;
8424
 
  int arg1 ;
8425
 
  
8426
 
  SWIG_check_num_args("ui_itemlist_enable_encicon_column",1,1)
8427
 
  if(!lua_isnumber(L,1)) SWIG_fail_arg("ui_itemlist_enable_encicon_column",1,"int");
8428
 
  arg1 = (int)lua_tonumber(L, 1);
8429
 
  ui_itemlist_enable_encicon_column(arg1);
8430
 
  
8431
 
  return SWIG_arg;
8432
 
  
8433
 
  if(0) SWIG_fail;
8434
 
  
8435
 
fail:
8436
 
  lua_error(L);
8437
 
  return SWIG_arg;
8438
 
}
8439
 
 
8440
 
 
8441
 
static int _wrap_ui_itemlist_clear(lua_State* L) {
8442
 
  int SWIG_arg = 0;
8443
 
  
8444
 
  SWIG_check_num_args("ui_itemlist_clear",0,0)
8445
 
  ui_itemlist_clear();
8446
 
  
8447
 
  return SWIG_arg;
8448
 
  
8449
 
  if(0) SWIG_fail;
8450
 
  
8451
 
fail:
8452
 
  lua_error(L);
8453
 
  return SWIG_arg;
8454
 
}
8455
 
 
8456
 
 
8457
 
static int _wrap_ui_itemlist_scroll_left(lua_State* L) {
8458
 
  int SWIG_arg = 0;
8459
 
  
8460
 
  SWIG_check_num_args("ui_itemlist_scroll_left",0,0)
8461
 
  ui_itemlist_scroll_left();
8462
 
  
8463
 
  return SWIG_arg;
8464
 
  
8465
 
  if(0) SWIG_fail;
8466
 
  
8467
 
fail:
8468
 
  lua_error(L);
8469
 
  return SWIG_arg;
8470
 
}
8471
 
 
8472
 
 
8473
 
static int _wrap_on_Itemlist_row_activated(lua_State* L) {
8474
 
  int SWIG_arg = 0;
8475
 
  GtkTreeView *arg1 = (GtkTreeView *) 0 ;
8476
 
  GtkTreePath *arg2 = (GtkTreePath *) 0 ;
8477
 
  GtkTreeViewColumn *arg3 = (GtkTreeViewColumn *) 0 ;
8478
 
  gpointer arg4 ;
8479
 
  gpointer *argp4 ;
8480
 
  
8481
 
  SWIG_check_num_args("on_Itemlist_row_activated",4,4)
8482
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_Itemlist_row_activated",1,"GtkTreeView *");
8483
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("on_Itemlist_row_activated",2,"GtkTreePath *");
8484
 
  if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("on_Itemlist_row_activated",3,"GtkTreeViewColumn *");
8485
 
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("on_Itemlist_row_activated",4,"gpointer");
8486
 
  
8487
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeView,0))){
8488
 
    SWIG_fail_ptr("on_Itemlist_row_activated",1,SWIGTYPE_p_GtkTreeView);
8489
 
  }
8490
 
  
8491
 
  
8492
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GtkTreePath,0))){
8493
 
    SWIG_fail_ptr("on_Itemlist_row_activated",2,SWIGTYPE_p_GtkTreePath);
8494
 
  }
8495
 
  
8496
 
  
8497
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_GtkTreeViewColumn,0))){
8498
 
    SWIG_fail_ptr("on_Itemlist_row_activated",3,SWIGTYPE_p_GtkTreeViewColumn);
8499
 
  }
8500
 
  
8501
 
  
8502
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&argp4,SWIGTYPE_p_gpointer,0))){
8503
 
    SWIG_fail_ptr("on_Itemlist_row_activated",4,SWIGTYPE_p_gpointer);
8504
 
  }
8505
 
  arg4 = *argp4;
8506
 
  
8507
 
  on_Itemlist_row_activated(arg1,arg2,arg3,arg4);
8508
 
  
8509
 
  return SWIG_arg;
8510
 
  
8511
 
  if(0) SWIG_fail;
8512
 
  
8513
 
fail:
8514
 
  lua_error(L);
8515
 
  return SWIG_arg;
8516
 
}
8517
 
 
8518
 
 
8519
 
static int _wrap_itemlist_sort_column_changed_cb(lua_State* L) {
8520
 
  int SWIG_arg = 0;
8521
 
  GtkTreeSortable *arg1 = (GtkTreeSortable *) 0 ;
8522
 
  gpointer arg2 ;
8523
 
  gpointer *argp2 ;
8524
 
  
8525
 
  SWIG_check_num_args("itemlist_sort_column_changed_cb",2,2)
8526
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("itemlist_sort_column_changed_cb",1,"GtkTreeSortable *");
8527
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("itemlist_sort_column_changed_cb",2,"gpointer");
8528
 
  
8529
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeSortable,0))){
8530
 
    SWIG_fail_ptr("itemlist_sort_column_changed_cb",1,SWIGTYPE_p_GtkTreeSortable);
8531
 
  }
8532
 
  
8533
 
  
8534
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8535
 
    SWIG_fail_ptr("itemlist_sort_column_changed_cb",2,SWIGTYPE_p_gpointer);
8536
 
  }
8537
 
  arg2 = *argp2;
8538
 
  
8539
 
  itemlist_sort_column_changed_cb(arg1,arg2);
8540
 
  
8541
 
  return SWIG_arg;
8542
 
  
8543
 
  if(0) SWIG_fail;
8544
 
  
8545
 
fail:
8546
 
  lua_error(L);
8547
 
  return SWIG_arg;
8548
 
}
8549
 
 
8550
 
 
8551
 
static int _wrap_on_itemlist_selection_changed(lua_State* L) {
8552
 
  int SWIG_arg = 0;
8553
 
  GtkTreeSelection *arg1 = (GtkTreeSelection *) 0 ;
8554
 
  gpointer arg2 ;
8555
 
  gpointer *argp2 ;
8556
 
  
8557
 
  SWIG_check_num_args("on_itemlist_selection_changed",2,2)
8558
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_itemlist_selection_changed",1,"GtkTreeSelection *");
8559
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_itemlist_selection_changed",2,"gpointer");
8560
 
  
8561
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeSelection,0))){
8562
 
    SWIG_fail_ptr("on_itemlist_selection_changed",1,SWIGTYPE_p_GtkTreeSelection);
8563
 
  }
8564
 
  
8565
 
  
8566
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8567
 
    SWIG_fail_ptr("on_itemlist_selection_changed",2,SWIGTYPE_p_gpointer);
8568
 
  }
8569
 
  arg2 = *argp2;
8570
 
  
8571
 
  on_itemlist_selection_changed(arg1,arg2);
8572
 
  
8573
 
  return SWIG_arg;
8574
 
  
8575
 
  if(0) SWIG_fail;
8576
 
  
8577
 
fail:
8578
 
  lua_error(L);
8579
 
  return SWIG_arg;
8580
 
}
8581
 
 
8582
 
 
8583
 
static int _wrap_on_toggle_unread_status(lua_State* L) {
8584
 
  int SWIG_arg = 0;
8585
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8586
 
  gpointer arg2 ;
8587
 
  gpointer *argp2 ;
8588
 
  
8589
 
  SWIG_check_num_args("on_toggle_unread_status",2,2)
8590
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_toggle_unread_status",1,"GtkMenuItem *");
8591
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_toggle_unread_status",2,"gpointer");
8592
 
  
8593
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8594
 
    SWIG_fail_ptr("on_toggle_unread_status",1,SWIGTYPE_p_GtkMenuItem);
8595
 
  }
8596
 
  
8597
 
  
8598
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8599
 
    SWIG_fail_ptr("on_toggle_unread_status",2,SWIGTYPE_p_gpointer);
8600
 
  }
8601
 
  arg2 = *argp2;
8602
 
  
8603
 
  on_toggle_unread_status(arg1,arg2);
8604
 
  
8605
 
  return SWIG_arg;
8606
 
  
8607
 
  if(0) SWIG_fail;
8608
 
  
8609
 
fail:
8610
 
  lua_error(L);
8611
 
  return SWIG_arg;
8612
 
}
8613
 
 
8614
 
 
8615
 
static int _wrap_on_toggle_item_flag(lua_State* L) {
8616
 
  int SWIG_arg = 0;
8617
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8618
 
  gpointer arg2 ;
8619
 
  gpointer *argp2 ;
8620
 
  
8621
 
  SWIG_check_num_args("on_toggle_item_flag",2,2)
8622
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_toggle_item_flag",1,"GtkMenuItem *");
8623
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_toggle_item_flag",2,"gpointer");
8624
 
  
8625
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8626
 
    SWIG_fail_ptr("on_toggle_item_flag",1,SWIGTYPE_p_GtkMenuItem);
8627
 
  }
8628
 
  
8629
 
  
8630
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8631
 
    SWIG_fail_ptr("on_toggle_item_flag",2,SWIGTYPE_p_gpointer);
8632
 
  }
8633
 
  arg2 = *argp2;
8634
 
  
8635
 
  on_toggle_item_flag(arg1,arg2);
8636
 
  
8637
 
  return SWIG_arg;
8638
 
  
8639
 
  if(0) SWIG_fail;
8640
 
  
8641
 
fail:
8642
 
  lua_error(L);
8643
 
  return SWIG_arg;
8644
 
}
8645
 
 
8646
 
 
8647
 
static int _wrap_on_popup_launchitem_selected(lua_State* L) {
8648
 
  int SWIG_arg = 0;
8649
 
  
8650
 
  SWIG_check_num_args("on_popup_launchitem_selected",0,0)
8651
 
  on_popup_launchitem_selected();
8652
 
  
8653
 
  return SWIG_arg;
8654
 
  
8655
 
  if(0) SWIG_fail;
8656
 
  
8657
 
fail:
8658
 
  lua_error(L);
8659
 
  return SWIG_arg;
8660
 
}
8661
 
 
8662
 
 
8663
 
static int _wrap_on_popup_launchitem_in_tab_selected(lua_State* L) {
8664
 
  int SWIG_arg = 0;
8665
 
  
8666
 
  SWIG_check_num_args("on_popup_launchitem_in_tab_selected",0,0)
8667
 
  on_popup_launchitem_in_tab_selected();
8668
 
  
8669
 
  return SWIG_arg;
8670
 
  
8671
 
  if(0) SWIG_fail;
8672
 
  
8673
 
fail:
8674
 
  lua_error(L);
8675
 
  return SWIG_arg;
8676
 
}
8677
 
 
8678
 
 
8679
 
static int _wrap_on_popup_toggle_read(lua_State* L) {
8680
 
  int SWIG_arg = 0;
8681
 
  
8682
 
  SWIG_check_num_args("on_popup_toggle_read",0,0)
8683
 
  on_popup_toggle_read();
8684
 
  
8685
 
  return SWIG_arg;
8686
 
  
8687
 
  if(0) SWIG_fail;
8688
 
  
8689
 
fail:
8690
 
  lua_error(L);
8691
 
  return SWIG_arg;
8692
 
}
8693
 
 
8694
 
 
8695
 
static int _wrap_on_popup_toggle_flag(lua_State* L) {
8696
 
  int SWIG_arg = 0;
8697
 
  
8698
 
  SWIG_check_num_args("on_popup_toggle_flag",0,0)
8699
 
  on_popup_toggle_flag();
8700
 
  
8701
 
  return SWIG_arg;
8702
 
  
8703
 
  if(0) SWIG_fail;
8704
 
  
8705
 
fail:
8706
 
  lua_error(L);
8707
 
  return SWIG_arg;
8708
 
}
8709
 
 
8710
 
 
8711
 
static int _wrap_on_remove_items_activate(lua_State* L) {
8712
 
  int SWIG_arg = 0;
8713
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8714
 
  gpointer arg2 ;
8715
 
  gpointer *argp2 ;
8716
 
  
8717
 
  SWIG_check_num_args("on_remove_items_activate",2,2)
8718
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_remove_items_activate",1,"GtkMenuItem *");
8719
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_remove_items_activate",2,"gpointer");
8720
 
  
8721
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8722
 
    SWIG_fail_ptr("on_remove_items_activate",1,SWIGTYPE_p_GtkMenuItem);
8723
 
  }
8724
 
  
8725
 
  
8726
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8727
 
    SWIG_fail_ptr("on_remove_items_activate",2,SWIGTYPE_p_gpointer);
8728
 
  }
8729
 
  arg2 = *argp2;
8730
 
  
8731
 
  on_remove_items_activate(arg1,arg2);
8732
 
  
8733
 
  return SWIG_arg;
8734
 
  
8735
 
  if(0) SWIG_fail;
8736
 
  
8737
 
fail:
8738
 
  lua_error(L);
8739
 
  return SWIG_arg;
8740
 
}
8741
 
 
8742
 
 
8743
 
static int _wrap_on_remove_item_activate(lua_State* L) {
8744
 
  int SWIG_arg = 0;
8745
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8746
 
  gpointer arg2 ;
8747
 
  gpointer *argp2 ;
8748
 
  
8749
 
  SWIG_check_num_args("on_remove_item_activate",2,2)
8750
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_remove_item_activate",1,"GtkMenuItem *");
8751
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_remove_item_activate",2,"gpointer");
8752
 
  
8753
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8754
 
    SWIG_fail_ptr("on_remove_item_activate",1,SWIGTYPE_p_GtkMenuItem);
8755
 
  }
8756
 
  
8757
 
  
8758
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8759
 
    SWIG_fail_ptr("on_remove_item_activate",2,SWIGTYPE_p_gpointer);
8760
 
  }
8761
 
  arg2 = *argp2;
8762
 
  
8763
 
  on_remove_item_activate(arg1,arg2);
8764
 
  
8765
 
  return SWIG_arg;
8766
 
  
8767
 
  if(0) SWIG_fail;
8768
 
  
8769
 
fail:
8770
 
  lua_error(L);
8771
 
  return SWIG_arg;
8772
 
}
8773
 
 
8774
 
 
8775
 
static int _wrap_on_popup_remove_selected(lua_State* L) {
8776
 
  int SWIG_arg = 0;
8777
 
  
8778
 
  SWIG_check_num_args("on_popup_remove_selected",0,0)
8779
 
  on_popup_remove_selected();
8780
 
  
8781
 
  return SWIG_arg;
8782
 
  
8783
 
  if(0) SWIG_fail;
8784
 
  
8785
 
fail:
8786
 
  lua_error(L);
8787
 
  return SWIG_arg;
8788
 
}
8789
 
 
8790
 
 
8791
 
static int _wrap_ui_itemlist_find_unread_item(lua_State* L) {
8792
 
  int SWIG_arg = 0;
8793
 
  gulong arg1 ;
8794
 
  gulong *argp1 ;
8795
 
  itemPtr result;
8796
 
  
8797
 
  SWIG_check_num_args("ui_itemlist_find_unread_item",1,1)
8798
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("ui_itemlist_find_unread_item",1,"gulong");
8799
 
  
8800
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_gulong,0))){
8801
 
    SWIG_fail_ptr("ui_itemlist_find_unread_item",1,SWIGTYPE_p_gulong);
8802
 
  }
8803
 
  arg1 = *argp1;
8804
 
  
8805
 
  result = (itemPtr)ui_itemlist_find_unread_item(arg1);
8806
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_item,0); SWIG_arg++; 
8807
 
  return SWIG_arg;
8808
 
  
8809
 
  if(0) SWIG_fail;
8810
 
  
8811
 
fail:
8812
 
  lua_error(L);
8813
 
  return SWIG_arg;
8814
 
}
8815
 
 
8816
 
 
8817
 
static int _wrap_on_next_unread_item_activate(lua_State* L) {
8818
 
  int SWIG_arg = 0;
8819
 
  GtkMenuItem *arg1 = (GtkMenuItem *) 0 ;
8820
 
  gpointer arg2 ;
8821
 
  gpointer *argp2 ;
8822
 
  
8823
 
  SWIG_check_num_args("on_next_unread_item_activate",2,2)
8824
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_next_unread_item_activate",1,"GtkMenuItem *");
8825
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_next_unread_item_activate",2,"gpointer");
8826
 
  
8827
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkMenuItem,0))){
8828
 
    SWIG_fail_ptr("on_next_unread_item_activate",1,SWIGTYPE_p_GtkMenuItem);
8829
 
  }
8830
 
  
8831
 
  
8832
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8833
 
    SWIG_fail_ptr("on_next_unread_item_activate",2,SWIGTYPE_p_gpointer);
8834
 
  }
8835
 
  arg2 = *argp2;
8836
 
  
8837
 
  on_next_unread_item_activate(arg1,arg2);
8838
 
  
8839
 
  return SWIG_arg;
8840
 
  
8841
 
  if(0) SWIG_fail;
8842
 
  
8843
 
fail:
8844
 
  lua_error(L);
8845
 
  return SWIG_arg;
8846
 
}
8847
 
 
8848
 
 
8849
 
static int _wrap_on_popup_next_unread_item_selected(lua_State* L) {
8850
 
  int SWIG_arg = 0;
8851
 
  gpointer arg1 ;
8852
 
  unsigned int arg2 ;
8853
 
  GtkWidget *arg3 = (GtkWidget *) 0 ;
8854
 
  gpointer *argp1 ;
8855
 
  
8856
 
  SWIG_check_num_args("on_popup_next_unread_item_selected",3,3)
8857
 
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("on_popup_next_unread_item_selected",1,"gpointer");
8858
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("on_popup_next_unread_item_selected",2,"unsigned int");
8859
 
  if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("on_popup_next_unread_item_selected",3,"GtkWidget *");
8860
 
  
8861
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_gpointer,0))){
8862
 
    SWIG_fail_ptr("on_popup_next_unread_item_selected",1,SWIGTYPE_p_gpointer);
8863
 
  }
8864
 
  arg1 = *argp1;
8865
 
  
8866
 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
8867
 
  arg2 = (unsigned int)lua_tonumber(L, 2);
8868
 
  
8869
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_GtkWidget,0))){
8870
 
    SWIG_fail_ptr("on_popup_next_unread_item_selected",3,SWIGTYPE_p_GtkWidget);
8871
 
  }
8872
 
  
8873
 
  on_popup_next_unread_item_selected(arg1,arg2,arg3);
8874
 
  
8875
 
  return SWIG_arg;
8876
 
  
8877
 
  if(0) SWIG_fail;
8878
 
  
8879
 
fail:
8880
 
  lua_error(L);
8881
 
  return SWIG_arg;
8882
 
}
8883
 
 
8884
 
 
8885
 
static int _wrap_on_nextbtn_clicked(lua_State* L) {
8886
 
  int SWIG_arg = 0;
8887
 
  GtkButton *arg1 = (GtkButton *) 0 ;
8888
 
  gpointer arg2 ;
8889
 
  gpointer *argp2 ;
8890
 
  
8891
 
  SWIG_check_num_args("on_nextbtn_clicked",2,2)
8892
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("on_nextbtn_clicked",1,"GtkButton *");
8893
 
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("on_nextbtn_clicked",2,"gpointer");
8894
 
  
8895
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkButton,0))){
8896
 
    SWIG_fail_ptr("on_nextbtn_clicked",1,SWIGTYPE_p_GtkButton);
8897
 
  }
8898
 
  
8899
 
  
8900
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_gpointer,0))){
8901
 
    SWIG_fail_ptr("on_nextbtn_clicked",2,SWIGTYPE_p_gpointer);
8902
 
  }
8903
 
  arg2 = *argp2;
8904
 
  
8905
 
  on_nextbtn_clicked(arg1,arg2);
8906
 
  
8907
 
  return SWIG_arg;
8908
 
  
8909
 
  if(0) SWIG_fail;
8910
 
  
8911
 
fail:
8912
 
  lua_error(L);
8913
 
  return SWIG_arg;
8914
 
}
8915
 
 
8916
 
 
8917
 
static int _wrap_ui_itemlist_update_item(lua_State* L) {
8918
 
  int SWIG_arg = 0;
8919
 
  itemPtr arg1 = (itemPtr) 0 ;
8920
 
  
8921
 
  SWIG_check_num_args("ui_itemlist_update_item",1,1)
8922
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_update_item",1,"itemPtr");
8923
 
  
8924
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8925
 
    SWIG_fail_ptr("ui_itemlist_update_item",1,SWIGTYPE_p_item);
8926
 
  }
8927
 
  
8928
 
  ui_itemlist_update_item(arg1);
8929
 
  
8930
 
  return SWIG_arg;
8931
 
  
8932
 
  if(0) SWIG_fail;
8933
 
  
8934
 
fail:
8935
 
  lua_error(L);
8936
 
  return SWIG_arg;
8937
 
}
8938
 
 
8939
 
 
8940
 
static int _wrap_ui_itemlist_update_all_items(lua_State* L) {
8941
 
  int SWIG_arg = 0;
8942
 
  
8943
 
  SWIG_check_num_args("ui_itemlist_update_all_items",0,0)
8944
 
  ui_itemlist_update_all_items();
8945
 
  
8946
 
  return SWIG_arg;
8947
 
  
8948
 
  if(0) SWIG_fail;
8949
 
  
8950
 
fail:
8951
 
  lua_error(L);
8952
 
  return SWIG_arg;
8953
 
}
8954
 
 
8955
 
 
8956
 
static int _wrap_ui_itemlist_search_item_link(lua_State* L) {
8957
 
  int SWIG_arg = 0;
8958
 
  itemPtr arg1 = (itemPtr) 0 ;
8959
 
  
8960
 
  SWIG_check_num_args("ui_itemlist_search_item_link",1,1)
8961
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_search_item_link",1,"itemPtr");
8962
 
  
8963
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8964
 
    SWIG_fail_ptr("ui_itemlist_search_item_link",1,SWIGTYPE_p_item);
8965
 
  }
8966
 
  
8967
 
  ui_itemlist_search_item_link(arg1);
8968
 
  
8969
 
  return SWIG_arg;
8970
 
  
8971
 
  if(0) SWIG_fail;
8972
 
  
8973
 
fail:
8974
 
  lua_error(L);
8975
 
  return SWIG_arg;
8976
 
}
8977
 
 
8978
 
 
8979
 
static int _wrap_ui_itemlist_add_item_bookmark(lua_State* L) {
8980
 
  int SWIG_arg = 0;
8981
 
  itemPtr arg1 = (itemPtr) 0 ;
8982
 
  
8983
 
  SWIG_check_num_args("ui_itemlist_add_item_bookmark",1,1)
8984
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_itemlist_add_item_bookmark",1,"itemPtr");
8985
 
  
8986
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
8987
 
    SWIG_fail_ptr("ui_itemlist_add_item_bookmark",1,SWIGTYPE_p_item);
8988
 
  }
8989
 
  
8990
 
  ui_itemlist_add_item_bookmark(arg1);
8991
 
  
8992
 
  return SWIG_arg;
8993
 
  
8994
 
  if(0) SWIG_fail;
8995
 
  
8996
 
fail:
8997
 
  lua_error(L);
8998
 
  return SWIG_arg;
8999
 
}
9000
 
 
9001
 
 
9002
 
static int _wrap_on_popup_copy_URL_clipboard(lua_State* L) {
9003
 
  int SWIG_arg = 0;
9004
 
  
9005
 
  SWIG_check_num_args("on_popup_copy_URL_clipboard",0,0)
9006
 
  on_popup_copy_URL_clipboard();
9007
 
  
9008
 
  return SWIG_arg;
9009
 
  
9010
 
  if(0) SWIG_fail;
9011
 
  
9012
 
fail:
9013
 
  lua_error(L);
9014
 
  return SWIG_arg;
9015
 
}
9016
 
 
9017
 
 
9018
 
static int _wrap_on_popup_social_bm_item_selected(lua_State* L) {
9019
 
  int SWIG_arg = 0;
9020
 
  
9021
 
  SWIG_check_num_args("on_popup_social_bm_item_selected",0,0)
9022
 
  on_popup_social_bm_item_selected();
9023
 
  
9024
 
  return SWIG_arg;
9025
 
  
9026
 
  if(0) SWIG_fail;
9027
 
  
9028
 
fail:
9029
 
  lua_error(L);
9030
 
  return SWIG_arg;
9031
 
}
9032
 
 
9033
 
 
9034
 
static int _wrap_ui_node_to_iter(lua_State* L) {
9035
 
  int SWIG_arg = 0;
9036
 
  char *arg1 = (char *) 0 ;
9037
 
  GtkTreeIter *result = 0 ;
9038
 
  
9039
 
  SWIG_check_num_args("ui_node_to_iter",1,1)
9040
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("ui_node_to_iter",1,"char const *");
9041
 
  arg1 = (char *)lua_tostring(L, 1);
9042
 
  result = (GtkTreeIter *)ui_node_to_iter((char const *)arg1);
9043
 
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_GtkTreeIter,0); SWIG_arg++; 
9044
 
  return SWIG_arg;
9045
 
  
9046
 
  if(0) SWIG_fail;
9047
 
  
9048
 
fail:
9049
 
  lua_error(L);
9050
 
  return SWIG_arg;
9051
 
}
9052
 
 
9053
 
 
9054
 
static int _wrap_ui_node_update_iter(lua_State* L) {
9055
 
  int SWIG_arg = 0;
9056
 
  char *arg1 = (char *) 0 ;
9057
 
  GtkTreeIter *arg2 = (GtkTreeIter *) 0 ;
9058
 
  
9059
 
  SWIG_check_num_args("ui_node_update_iter",2,2)
9060
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("ui_node_update_iter",1,"char const *");
9061
 
  if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("ui_node_update_iter",2,"GtkTreeIter *");
9062
 
  arg1 = (char *)lua_tostring(L, 1);
9063
 
  
9064
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_GtkTreeIter,0))){
9065
 
    SWIG_fail_ptr("ui_node_update_iter",2,SWIGTYPE_p_GtkTreeIter);
9066
 
  }
9067
 
  
9068
 
  ui_node_update_iter((char const *)arg1,arg2);
9069
 
  
9070
 
  return SWIG_arg;
9071
 
  
9072
 
  if(0) SWIG_fail;
9073
 
  
9074
 
fail:
9075
 
  lua_error(L);
9076
 
  return SWIG_arg;
9077
 
}
9078
 
 
9079
 
 
9080
 
static int _wrap_ui_node_add(lua_State* L) {
9081
 
  int SWIG_arg = 0;
9082
 
  nodePtr arg1 = (nodePtr) 0 ;
9083
 
  
9084
 
  SWIG_check_num_args("ui_node_add",1,1)
9085
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_add",1,"nodePtr");
9086
 
  
9087
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
9088
 
    SWIG_fail_ptr("ui_node_add",1,SWIGTYPE_p_node);
9089
 
  }
9090
 
  
9091
 
  ui_node_add(arg1);
9092
 
  
9093
 
  return SWIG_arg;
9094
 
  
9095
 
  if(0) SWIG_fail;
9096
 
  
9097
 
fail:
9098
 
  lua_error(L);
9099
 
  return SWIG_arg;
9100
 
}
9101
 
 
9102
 
 
9103
 
static int _wrap_ui_node_reload_feedlist(lua_State* L) {
9104
 
  int SWIG_arg = 0;
9105
 
  
9106
 
  SWIG_check_num_args("ui_node_reload_feedlist",0,0)
9107
 
  ui_node_reload_feedlist();
9108
 
  
9109
 
  return SWIG_arg;
9110
 
  
9111
 
  if(0) SWIG_fail;
9112
 
  
9113
 
fail:
9114
 
  lua_error(L);
9115
 
  return SWIG_arg;
9116
 
}
9117
 
 
9118
 
 
9119
 
static int _wrap_ui_node_clear_feedlist(lua_State* L) {
9120
 
  int SWIG_arg = 0;
9121
 
  
9122
 
  SWIG_check_num_args("ui_node_clear_feedlist",0,0)
9123
 
  ui_node_clear_feedlist();
9124
 
  
9125
 
  return SWIG_arg;
9126
 
  
9127
 
  if(0) SWIG_fail;
9128
 
  
9129
 
fail:
9130
 
  lua_error(L);
9131
 
  return SWIG_arg;
9132
 
}
9133
 
 
9134
 
 
9135
 
static int _wrap_ui_node_load_feedlist(lua_State* L) {
9136
 
  int SWIG_arg = 0;
9137
 
  nodePtr arg1 = (nodePtr) 0 ;
9138
 
  
9139
 
  SWIG_check_num_args("ui_node_load_feedlist",1,1)
9140
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_load_feedlist",1,"nodePtr");
9141
 
  
9142
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
9143
 
    SWIG_fail_ptr("ui_node_load_feedlist",1,SWIGTYPE_p_node);
9144
 
  }
9145
 
  
9146
 
  ui_node_load_feedlist(arg1);
9147
 
  
9148
 
  return SWIG_arg;
9149
 
  
9150
 
  if(0) SWIG_fail;
9151
 
  
9152
 
fail:
9153
 
  lua_error(L);
9154
 
  return SWIG_arg;
9155
 
}
9156
 
 
9157
 
 
9158
 
static int _wrap_ui_node_remove_node(lua_State* L) {
9159
 
  int SWIG_arg = 0;
9160
 
  nodePtr arg1 = (nodePtr) 0 ;
9161
 
  
9162
 
  SWIG_check_num_args("ui_node_remove_node",1,1)
9163
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_remove_node",1,"nodePtr");
9164
 
  
9165
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
9166
 
    SWIG_fail_ptr("ui_node_remove_node",1,SWIGTYPE_p_node);
9167
 
  }
9168
 
  
9169
 
  ui_node_remove_node(arg1);
9170
 
  
9171
 
  return SWIG_arg;
9172
 
  
9173
 
  if(0) SWIG_fail;
9174
 
  
9175
 
fail:
9176
 
  lua_error(L);
9177
 
  return SWIG_arg;
9178
 
}
9179
 
 
9180
 
 
9181
 
static int _wrap_ui_node_add_empty_node(lua_State* L) {
9182
 
  int SWIG_arg = 0;
9183
 
  GtkTreeIter *arg1 = (GtkTreeIter *) 0 ;
9184
 
  
9185
 
  SWIG_check_num_args("ui_node_add_empty_node",1,1)
9186
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_add_empty_node",1,"GtkTreeIter *");
9187
 
  
9188
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeIter,0))){
9189
 
    SWIG_fail_ptr("ui_node_add_empty_node",1,SWIGTYPE_p_GtkTreeIter);
9190
 
  }
9191
 
  
9192
 
  ui_node_add_empty_node(arg1);
9193
 
  
9194
 
  return SWIG_arg;
9195
 
  
9196
 
  if(0) SWIG_fail;
9197
 
  
9198
 
fail:
9199
 
  lua_error(L);
9200
 
  return SWIG_arg;
9201
 
}
9202
 
 
9203
 
 
9204
 
static int _wrap_ui_node_remove_empty_node(lua_State* L) {
9205
 
  int SWIG_arg = 0;
9206
 
  GtkTreeIter *arg1 = (GtkTreeIter *) 0 ;
9207
 
  
9208
 
  SWIG_check_num_args("ui_node_remove_empty_node",1,1)
9209
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_remove_empty_node",1,"GtkTreeIter *");
9210
 
  
9211
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_GtkTreeIter,0))){
9212
 
    SWIG_fail_ptr("ui_node_remove_empty_node",1,SWIGTYPE_p_GtkTreeIter);
9213
 
  }
9214
 
  
9215
 
  ui_node_remove_empty_node(arg1);
9216
 
  
9217
 
  return SWIG_arg;
9218
 
  
9219
 
  if(0) SWIG_fail;
9220
 
  
9221
 
fail:
9222
 
  lua_error(L);
9223
 
  return SWIG_arg;
9224
 
}
9225
 
 
9226
 
 
9227
 
static int _wrap_ui_node_is_expanded(lua_State* L) {
9228
 
  int SWIG_arg = 0;
9229
 
  char *arg1 = (char *) 0 ;
9230
 
  int result;
9231
 
  
9232
 
  SWIG_check_num_args("ui_node_is_expanded",1,1)
9233
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("ui_node_is_expanded",1,"char const *");
9234
 
  arg1 = (char *)lua_tostring(L, 1);
9235
 
  result = (int)ui_node_is_expanded((char const *)arg1);
9236
 
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
9237
 
  return SWIG_arg;
9238
 
  
9239
 
  if(0) SWIG_fail;
9240
 
  
9241
 
fail:
9242
 
  lua_error(L);
9243
 
  return SWIG_arg;
9244
 
}
9245
 
 
9246
 
 
9247
 
static int _wrap_ui_node_check_if_folder_is_empty(lua_State* L) {
9248
 
  int SWIG_arg = 0;
9249
 
  char *arg1 = (char *) 0 ;
9250
 
  
9251
 
  SWIG_check_num_args("ui_node_check_if_folder_is_empty",1,1)
9252
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("ui_node_check_if_folder_is_empty",1,"char const *");
9253
 
  arg1 = (char *)lua_tostring(L, 1);
9254
 
  ui_node_check_if_folder_is_empty((char const *)arg1);
9255
 
  
9256
 
  return SWIG_arg;
9257
 
  
9258
 
  if(0) SWIG_fail;
9259
 
  
9260
 
fail:
9261
 
  lua_error(L);
9262
 
  return SWIG_arg;
9263
 
}
9264
 
 
9265
 
 
9266
 
static int _wrap_ui_node_set_expansion(lua_State* L) {
9267
 
  int SWIG_arg = 0;
9268
 
  nodePtr arg1 = (nodePtr) 0 ;
9269
 
  int arg2 ;
9270
 
  
9271
 
  SWIG_check_num_args("ui_node_set_expansion",2,2)
9272
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_set_expansion",1,"nodePtr");
9273
 
  if(!lua_isnumber(L,2)) SWIG_fail_arg("ui_node_set_expansion",2,"int");
9274
 
  
9275
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
9276
 
    SWIG_fail_ptr("ui_node_set_expansion",1,SWIGTYPE_p_node);
9277
 
  }
9278
 
  
9279
 
  arg2 = (int)lua_tonumber(L, 2);
9280
 
  ui_node_set_expansion(arg1,arg2);
9281
 
  
9282
 
  return SWIG_arg;
9283
 
  
9284
 
  if(0) SWIG_fail;
9285
 
  
9286
 
fail:
9287
 
  lua_error(L);
9288
 
  return SWIG_arg;
9289
 
}
9290
 
 
9291
 
 
9292
 
static int _wrap_ui_node_update(lua_State* L) {
9293
 
  int SWIG_arg = 0;
9294
 
  char *arg1 = (char *) 0 ;
9295
 
  
9296
 
  SWIG_check_num_args("ui_node_update",1,1)
9297
 
  if(!lua_isstring(L,1)) SWIG_fail_arg("ui_node_update",1,"char const *");
9298
 
  arg1 = (char *)lua_tostring(L, 1);
9299
 
  ui_node_update((char const *)arg1);
9300
 
  
9301
 
  return SWIG_arg;
9302
 
  
9303
 
  if(0) SWIG_fail;
9304
 
  
9305
 
fail:
9306
 
  lua_error(L);
9307
 
  return SWIG_arg;
9308
 
}
9309
 
 
9310
 
 
9311
 
static int _wrap_ui_node_rename(lua_State* L) {
9312
 
  int SWIG_arg = 0;
9313
 
  nodePtr arg1 = (nodePtr) 0 ;
9314
 
  
9315
 
  SWIG_check_num_args("ui_node_rename",1,1)
9316
 
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ui_node_rename",1,"nodePtr");
9317
 
  
9318
 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_node,0))){
9319
 
    SWIG_fail_ptr("ui_node_rename",1,SWIGTYPE_p_node);
9320
 
  }
9321
 
  
9322
 
  ui_node_rename(arg1);
9323
 
  
9324
 
  return SWIG_arg;
9325
 
  
9326
 
  if(0) SWIG_fail;
9327
 
  
9328
 
fail:
9329
 
  lua_error(L);
9330
 
  return SWIG_arg;
9331
 
}
9332
 
 
9333
 
 
9334
 
#ifdef __cplusplus
9335
 
}
9336
 
#endif
9337
 
 
9338
 
static const struct luaL_reg swig_commands[] = {
9339
 
    { "node_new", _wrap_node_new},
9340
 
    { "node_from_id", _wrap_node_from_id},
9341
 
    { "node_set_parent", _wrap_node_set_parent},
9342
 
    { "node_remove", _wrap_node_remove},
9343
 
    { "node_set_data", _wrap_node_set_data},
9344
 
    { "node_set_subscription", _wrap_node_set_subscription},
9345
 
    { "node_update_subscription", _wrap_node_update_subscription},
9346
 
    { "node_auto_update_subscription", _wrap_node_auto_update_subscription},
9347
 
    { "node_reset_update_counter", _wrap_node_reset_update_counter},
9348
 
    { "node_is_ancestor", _wrap_node_is_ancestor},
9349
 
    { "node_get_title", _wrap_node_get_title},
9350
 
    { "node_set_title", _wrap_node_set_title},
9351
 
    { "node_update_counters", _wrap_node_update_counters},
9352
 
    { "node_mark_all_read", _wrap_node_mark_all_read},
9353
 
    { "node_set_icon", _wrap_node_set_icon},
9354
 
    { "node_get_icon", _wrap_node_get_icon},
9355
 
    { "node_get_favicon_file", _wrap_node_get_favicon_file},
9356
 
    { "node_new_id", _wrap_node_new_id},
9357
 
    { "node_get_id", _wrap_node_get_id},
9358
 
    { "node_set_id", _wrap_node_set_id},
9359
 
    { "node_free", _wrap_node_free},
9360
 
    { "node_default_render", _wrap_node_default_render},
9361
 
    { "node_save", _wrap_node_save},
9362
 
    { "node_get_itemset", _wrap_node_get_itemset},
9363
 
    { "node_render", _wrap_node_render},
9364
 
    { "node_update_favicon", _wrap_node_update_favicon},
9365
 
    { "node_set_sort_column", _wrap_node_set_sort_column},
9366
 
    { "node_set_view_mode", _wrap_node_set_view_mode},
9367
 
    { "node_get_view_mode", _wrap_node_get_view_mode},
9368
 
    { "node_load_link_preferred", _wrap_node_load_link_preferred},
9369
 
    { "node_get_base_url", _wrap_node_get_base_url},
9370
 
    { "node_foreach_child_full", _wrap_node_foreach_child_full},
9371
 
    { "item_new", _wrap_item_new},
9372
 
    { "item_load", _wrap_item_load},
9373
 
    { "item_copy", _wrap_item_copy},
9374
 
    { "item_get_base_url", _wrap_item_get_base_url},
9375
 
    { "item_unload", _wrap_item_unload},
9376
 
    { "item_get_id", _wrap_item_get_id},
9377
 
    { "item_get_title", _wrap_item_get_title},
9378
 
    { "item_get_description", _wrap_item_get_description},
9379
 
    { "item_get_source", _wrap_item_get_source},
9380
 
    { "item_set_title", _wrap_item_set_title},
9381
 
    { "item_set_description", _wrap_item_set_description},
9382
 
    { "item_set_source", _wrap_item_set_source},
9383
 
    { "item_set_id", _wrap_item_set_id},
9384
 
    { "item_to_xml", _wrap_item_to_xml},
9385
 
    { "item_set_flag_state", _wrap_item_set_flag_state},
9386
 
    { "item_flag_state_changed", _wrap_item_flag_state_changed},
9387
 
    { "item_set_read_state", _wrap_item_set_read_state},
9388
 
    { "item_read_state_changed", _wrap_item_read_state_changed},
9389
 
    { "itemset_mark_read", _wrap_itemset_mark_read},
9390
 
    { "item_state_set_all_popup", _wrap_item_state_set_all_popup},
9391
 
    { "itemlist_free", _wrap_itemlist_free},
9392
 
    { "itemlist_get_displayed_node", _wrap_itemlist_get_displayed_node},
9393
 
    { "itemlist_get_selected", _wrap_itemlist_get_selected},
9394
 
    { "itemlist_get_selected_id", _wrap_itemlist_get_selected_id},
9395
 
    { "itemlist_merge_itemset", _wrap_itemlist_merge_itemset},
9396
 
    { "itemlist_load_search_result", _wrap_itemlist_load_search_result},
9397
 
    { "itemlist_load", _wrap_itemlist_load},
9398
 
    { "itemlist_unload", _wrap_itemlist_unload},
9399
 
    { "itemlist_set_view_mode", _wrap_itemlist_set_view_mode},
9400
 
    { "itemlist_get_view_mode", _wrap_itemlist_get_view_mode},
9401
 
    { "on_view_activate", _wrap_on_view_activate},
9402
 
    { "itemlist_update_item", _wrap_itemlist_update_item},
9403
 
    { "itemlist_request_remove_item", _wrap_itemlist_request_remove_item},
9404
 
    { "itemlist_remove_item", _wrap_itemlist_remove_item},
9405
 
    { "itemlist_remove_items", _wrap_itemlist_remove_items},
9406
 
    { "itemlist_remove_all_items", _wrap_itemlist_remove_all_items},
9407
 
    { "itemlist_selection_changed", _wrap_itemlist_selection_changed},
9408
 
    { "itemlist_select_next_unread", _wrap_itemlist_select_next_unread},
9409
 
    { "itemlist_toggle_flag", _wrap_itemlist_toggle_flag},
9410
 
    { "itemlist_toggle_read_status", _wrap_itemlist_toggle_read_status},
9411
 
    { "social_init", _wrap_social_init},
9412
 
    { "social_free", _wrap_social_free},
9413
 
    { "social_set_bookmark_site", _wrap_social_set_bookmark_site},
9414
 
    { "social_register_site", _wrap_social_register_site},
9415
 
    { "social_register_bookmark_site", _wrap_social_register_bookmark_site},
9416
 
    { "social_get_bookmark_url", _wrap_social_get_bookmark_url},
9417
 
    { "social_get_bookmark_site", _wrap_social_get_bookmark_site},
9418
 
    { "social_register_link_search_site", _wrap_social_register_link_search_site},
9419
 
    { "social_get_link_search_url", _wrap_social_get_link_search_url},
9420
 
    { "social_set_link_search_site", _wrap_social_set_link_search_site},
9421
 
    { "social_get_link_search_site", _wrap_social_get_link_search_site},
9422
 
    { "subscription_new", _wrap_subscription_new},
9423
 
    { "subscription_import", _wrap_subscription_import},
9424
 
    { "subscription_export", _wrap_subscription_export},
9425
 
    { "subscription_to_xml", _wrap_subscription_to_xml},
9426
 
    { "subscription_can_be_updated", _wrap_subscription_can_be_updated},
9427
 
    { "subscription_update", _wrap_subscription_update},
9428
 
    { "subscription_auto_update", _wrap_subscription_auto_update},
9429
 
    { "subscription_cancel_update", _wrap_subscription_cancel_update},
9430
 
    { "subscription_get_update_interval", _wrap_subscription_get_update_interval},
9431
 
    { "subscription_set_update_interval", _wrap_subscription_set_update_interval},
9432
 
    { "subscription_get_default_update_interval", _wrap_subscription_get_default_update_interval},
9433
 
    { "subscription_set_default_update_interval", _wrap_subscription_set_default_update_interval},
9434
 
    { "subscription_reset_update_counter", _wrap_subscription_reset_update_counter},
9435
 
    { "subscription_update_favicon", _wrap_subscription_update_favicon},
9436
 
    { "subscription_get_source", _wrap_subscription_get_source},
9437
 
    { "subscription_set_source", _wrap_subscription_set_source},
9438
 
    { "subscription_get_orig_source", _wrap_subscription_get_orig_source},
9439
 
    { "subscription_set_orig_source", _wrap_subscription_set_orig_source},
9440
 
    { "subscription_get_homepage", _wrap_subscription_get_homepage},
9441
 
    { "subscription_set_homepage", _wrap_subscription_set_homepage},
9442
 
    { "subscription_get_filter", _wrap_subscription_get_filter},
9443
 
    { "subscription_set_filter", _wrap_subscription_set_filter},
9444
 
    { "subscription_free", _wrap_subscription_free},
9445
 
    { "ui_feedlist_select", _wrap_ui_feedlist_select},
9446
 
    { "ui_feedlist_init", _wrap_ui_feedlist_init},
9447
 
    { "ui_feedlist_delete_prompt", _wrap_ui_feedlist_delete_prompt},
9448
 
    { "on_newbtn_clicked", _wrap_on_newbtn_clicked},
9449
 
    { "on_menu_delete", _wrap_on_menu_delete},
9450
 
    { "on_menu_update", _wrap_on_menu_update},
9451
 
    { "on_menu_update_all", _wrap_on_menu_update_all},
9452
 
    { "on_menu_allread", _wrap_on_menu_allread},
9453
 
    { "on_menu_allfeedsread", _wrap_on_menu_allfeedsread},
9454
 
    { "on_menu_properties", _wrap_on_menu_properties},
9455
 
    { "on_menu_feed_new", _wrap_on_menu_feed_new},
9456
 
    { "on_menu_folder_new", _wrap_on_menu_folder_new},
9457
 
    { "on_new_plugin_activate", _wrap_on_new_plugin_activate},
9458
 
    { "on_new_newsbin_activate", _wrap_on_new_newsbin_activate},
9459
 
    { "on_feedlist_reduced_activate", _wrap_on_feedlist_reduced_activate},
9460
 
    { "ui_itemlist_new", _wrap_ui_itemlist_new},
9461
 
    { "ui_itemlist_destroy", _wrap_ui_itemlist_destroy},
9462
 
    { "ui_itemlist_contains_item", _wrap_ui_itemlist_contains_item},
9463
 
    { "ui_itemlist_set_sort_column", _wrap_ui_itemlist_set_sort_column},
9464
 
    { "ui_itemlist_reset_tree_store", _wrap_ui_itemlist_reset_tree_store},
9465
 
    { "ui_itemlist_prefocus", _wrap_ui_itemlist_prefocus},
9466
 
    { "ui_itemlist_select", _wrap_ui_itemlist_select},
9467
 
    { "ui_itemlist_add_item", _wrap_ui_itemlist_add_item},
9468
 
    { "ui_itemlist_remove_item", _wrap_ui_itemlist_remove_item},
9469
 
    { "ui_itemlist_enable_favicon_column", _wrap_ui_itemlist_enable_favicon_column},
9470
 
    { "ui_itemlist_enable_encicon_column", _wrap_ui_itemlist_enable_encicon_column},
9471
 
    { "ui_itemlist_clear", _wrap_ui_itemlist_clear},
9472
 
    { "ui_itemlist_scroll_left", _wrap_ui_itemlist_scroll_left},
9473
 
    { "on_Itemlist_row_activated", _wrap_on_Itemlist_row_activated},
9474
 
    { "itemlist_sort_column_changed_cb", _wrap_itemlist_sort_column_changed_cb},
9475
 
    { "on_itemlist_selection_changed", _wrap_on_itemlist_selection_changed},
9476
 
    { "on_toggle_unread_status", _wrap_on_toggle_unread_status},
9477
 
    { "on_toggle_item_flag", _wrap_on_toggle_item_flag},
9478
 
    { "on_popup_launchitem_selected", _wrap_on_popup_launchitem_selected},
9479
 
    { "on_popup_launchitem_in_tab_selected", _wrap_on_popup_launchitem_in_tab_selected},
9480
 
    { "on_popup_toggle_read", _wrap_on_popup_toggle_read},
9481
 
    { "on_popup_toggle_flag", _wrap_on_popup_toggle_flag},
9482
 
    { "on_remove_items_activate", _wrap_on_remove_items_activate},
9483
 
    { "on_remove_item_activate", _wrap_on_remove_item_activate},
9484
 
    { "on_popup_remove_selected", _wrap_on_popup_remove_selected},
9485
 
    { "ui_itemlist_find_unread_item", _wrap_ui_itemlist_find_unread_item},
9486
 
    { "on_next_unread_item_activate", _wrap_on_next_unread_item_activate},
9487
 
    { "on_popup_next_unread_item_selected", _wrap_on_popup_next_unread_item_selected},
9488
 
    { "on_nextbtn_clicked", _wrap_on_nextbtn_clicked},
9489
 
    { "ui_itemlist_update_item", _wrap_ui_itemlist_update_item},
9490
 
    { "ui_itemlist_update_all_items", _wrap_ui_itemlist_update_all_items},
9491
 
    { "ui_itemlist_search_item_link", _wrap_ui_itemlist_search_item_link},
9492
 
    { "ui_itemlist_add_item_bookmark", _wrap_ui_itemlist_add_item_bookmark},
9493
 
    { "on_popup_copy_URL_clipboard", _wrap_on_popup_copy_URL_clipboard},
9494
 
    { "on_popup_social_bm_item_selected", _wrap_on_popup_social_bm_item_selected},
9495
 
    { "ui_node_to_iter", _wrap_ui_node_to_iter},
9496
 
    { "ui_node_update_iter", _wrap_ui_node_update_iter},
9497
 
    { "ui_node_add", _wrap_ui_node_add},
9498
 
    { "ui_node_reload_feedlist", _wrap_ui_node_reload_feedlist},
9499
 
    { "ui_node_clear_feedlist", _wrap_ui_node_clear_feedlist},
9500
 
    { "ui_node_load_feedlist", _wrap_ui_node_load_feedlist},
9501
 
    { "ui_node_remove_node", _wrap_ui_node_remove_node},
9502
 
    { "ui_node_add_empty_node", _wrap_ui_node_add_empty_node},
9503
 
    { "ui_node_remove_empty_node", _wrap_ui_node_remove_empty_node},
9504
 
    { "ui_node_is_expanded", _wrap_ui_node_is_expanded},
9505
 
    { "ui_node_check_if_folder_is_empty", _wrap_ui_node_check_if_folder_is_empty},
9506
 
    { "ui_node_set_expansion", _wrap_ui_node_set_expansion},
9507
 
    { "ui_node_update", _wrap_ui_node_update},
9508
 
    { "ui_node_rename", _wrap_ui_node_rename},
9509
 
    {0,0}
9510
 
};
9511
 
 
9512
 
static swig_lua_var_info swig_variables[] = {
9513
 
    { "feedstore", _wrap_feedstore_get, _wrap_feedstore_set },
9514
 
    { "feedlist_reduced_unread", _wrap_feedlist_reduced_unread_get, _wrap_feedlist_reduced_unread_set },
9515
 
    {0,0,0}
9516
 
};
9517
 
 
9518
 
static swig_lua_const_info swig_constants[] = {
9519
 
{ SWIG_LUA_INT,     (char *)"CACHE_DISABLE", (long) CACHE_DISABLE, 0, 0, 0},
9520
 
{ SWIG_LUA_INT,     (char *)"CACHE_DEFAULT", (long) CACHE_DEFAULT, 0, 0, 0},
9521
 
{ SWIG_LUA_INT,     (char *)"CACHE_UNLIMITED", (long) CACHE_UNLIMITED, 0, 0, 0},
9522
 
{ SWIG_LUA_INT,     (char *)"FEED_REQ_RESET_TITLE", (long) FEED_REQ_RESET_TITLE, 0, 0, 0},
9523
 
{ SWIG_LUA_INT,     (char *)"FEED_REQ_PRIORITY_HIGH", (long) FEED_REQ_PRIORITY_HIGH, 0, 0, 0},
9524
 
{ SWIG_LUA_INT,     (char *)"FEED_REQ_ALLOW_RETRIES", (long) FEED_REQ_ALLOW_RETRIES, 0, 0, 0},
9525
 
{ SWIG_LUA_INT,     (char *)"FEED_REQ_NO_PROXY", (long) FEED_REQ_NO_PROXY, 0, 0, 0},
9526
 
{ SWIG_LUA_INT,     (char *)"FS_LABEL", (long) FS_LABEL, 0, 0, 0},
9527
 
{ SWIG_LUA_INT,     (char *)"FS_ICON", (long) FS_ICON, 0, 0, 0},
9528
 
{ SWIG_LUA_INT,     (char *)"FS_PTR", (long) FS_PTR, 0, 0, 0},
9529
 
{ SWIG_LUA_INT,     (char *)"FS_UNREAD", (long) FS_UNREAD, 0, 0, 0},
9530
 
{ SWIG_LUA_INT,     (char *)"FS_LEN", (long) FS_LEN, 0, 0, 0},
9531
 
    {0,0,0,0,0,0}
9532
 
};
9533
 
 
9534
 
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
9535
 
 
9536
 
static swig_type_info _swigt__p_GHashTable = {"_p_GHashTable", "GHashTable *", 0, 0, (void*)0, 0};
9537
 
static swig_type_info _swigt__p_GList = {"_p_GList", "GList *", 0, 0, (void*)0, 0};
9538
 
static swig_type_info _swigt__p_GSList = {"_p_GSList", "GSList *", 0, 0, (void*)0, 0};
9539
 
static swig_type_info _swigt__p_GTimeVal = {"_p_GTimeVal", "GTimeVal *", 0, 0, (void*)0, 0};
9540
 
static swig_type_info _swigt__p_GtkButton = {"_p_GtkButton", "GtkButton *", 0, 0, (void*)0, 0};
9541
 
static swig_type_info _swigt__p_GtkMenuItem = {"_p_GtkMenuItem", "GtkMenuItem *", 0, 0, (void*)0, 0};
9542
 
static swig_type_info _swigt__p_GtkRadioAction = {"_p_GtkRadioAction", "GtkRadioAction *", 0, 0, (void*)0, 0};
9543
 
static swig_type_info _swigt__p_GtkToggleAction = {"_p_GtkToggleAction", "GtkToggleAction *", 0, 0, (void*)0, 0};
9544
 
static swig_type_info _swigt__p_GtkTreeIter = {"_p_GtkTreeIter", "GtkTreeIter *", 0, 0, (void*)0, 0};
9545
 
static swig_type_info _swigt__p_GtkTreePath = {"_p_GtkTreePath", "GtkTreePath *", 0, 0, (void*)0, 0};
9546
 
static swig_type_info _swigt__p_GtkTreeSelection = {"_p_GtkTreeSelection", "GtkTreeSelection *", 0, 0, (void*)0, 0};
9547
 
static swig_type_info _swigt__p_GtkTreeSortable = {"_p_GtkTreeSortable", "GtkTreeSortable *", 0, 0, (void*)0, 0};
9548
 
static swig_type_info _swigt__p_GtkTreeStore = {"_p_GtkTreeStore", "GtkTreeStore *", 0, 0, (void*)0, 0};
9549
 
static swig_type_info _swigt__p_GtkTreeView = {"_p_GtkTreeView", "GtkTreeView *", 0, 0, (void*)0, 0};
9550
 
static swig_type_info _swigt__p_GtkTreeViewColumn = {"_p_GtkTreeViewColumn", "GtkTreeViewColumn *", 0, 0, (void*)0, 0};
9551
 
static swig_type_info _swigt__p_GtkWidget = {"_p_GtkWidget", "GtkWidget *", 0, 0, (void*)0, 0};
9552
 
static swig_type_info _swigt__p_gpointer = {"_p_gpointer", "gpointer *", 0, 0, (void*)0, 0};
9553
 
static swig_type_info _swigt__p_gulong = {"_p_gulong", "gulong *", 0, 0, (void*)0, 0};
9554
 
static swig_type_info _swigt__p_item = {"_p_item", "itemPtr|struct item *|item *", 0, 0, (void*)&_wrap_class_item, 0};
9555
 
static swig_type_info _swigt__p_itemSetPtr = {"_p_itemSetPtr", "itemSetPtr *", 0, 0, (void*)0, 0};
9556
 
static swig_type_info _swigt__p_node = {"_p_node", "struct node *|node *|nodePtr", 0, 0, (void*)&_wrap_class_node, 0};
9557
 
static swig_type_info _swigt__p_nodeSource = {"_p_nodeSource", "struct nodeSource *", 0, 0, (void*)0, 0};
9558
 
static swig_type_info _swigt__p_nodeType = {"_p_nodeType", "struct nodeType *", 0, 0, (void*)0, 0};
9559
 
static swig_type_info _swigt__p_nodeViewSortType = {"_p_nodeViewSortType", "nodeViewSortType *", 0, 0, (void*)0, 0};
9560
 
static swig_type_info _swigt__p_nodeViewType = {"_p_nodeViewType", "nodeViewType *", 0, 0, (void*)0, 0};
9561
 
static swig_type_info _swigt__p_socialSite = {"_p_socialSite", "struct socialSite *|socialSite *", 0, 0, (void*)&_wrap_class_socialSite, 0};
9562
 
static swig_type_info _swigt__p_subscription = {"_p_subscription", "subscriptionPtr|struct subscription *|subscription *", 0, 0, (void*)&_wrap_class_subscription, 0};
9563
 
static swig_type_info _swigt__p_subscriptionType = {"_p_subscriptionType", "struct subscriptionType *", 0, 0, (void*)0, 0};
9564
 
static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0};
9565
 
static swig_type_info _swigt__p_updateJob = {"_p_updateJob", "struct updateJob *", 0, 0, (void*)0, 0};
9566
 
static swig_type_info _swigt__p_updateOptionsPtr = {"_p_updateOptionsPtr", "updateOptionsPtr *", 0, 0, (void*)0, 0};
9567
 
static swig_type_info _swigt__p_updateStatePtr = {"_p_updateStatePtr", "updateStatePtr *", 0, 0, (void*)0, 0};
9568
 
static swig_type_info _swigt__p_xmlNodePtr = {"_p_xmlNodePtr", "xmlNodePtr *", 0, 0, (void*)0, 0};
9569
 
 
9570
 
static swig_type_info *swig_type_initial[] = {
9571
 
  &_swigt__p_GHashTable,
9572
 
  &_swigt__p_GList,
9573
 
  &_swigt__p_GSList,
9574
 
  &_swigt__p_GTimeVal,
9575
 
  &_swigt__p_GtkButton,
9576
 
  &_swigt__p_GtkMenuItem,
9577
 
  &_swigt__p_GtkRadioAction,
9578
 
  &_swigt__p_GtkToggleAction,
9579
 
  &_swigt__p_GtkTreeIter,
9580
 
  &_swigt__p_GtkTreePath,
9581
 
  &_swigt__p_GtkTreeSelection,
9582
 
  &_swigt__p_GtkTreeSortable,
9583
 
  &_swigt__p_GtkTreeStore,
9584
 
  &_swigt__p_GtkTreeView,
9585
 
  &_swigt__p_GtkTreeViewColumn,
9586
 
  &_swigt__p_GtkWidget,
9587
 
  &_swigt__p_gpointer,
9588
 
  &_swigt__p_gulong,
9589
 
  &_swigt__p_item,
9590
 
  &_swigt__p_itemSetPtr,
9591
 
  &_swigt__p_node,
9592
 
  &_swigt__p_nodeSource,
9593
 
  &_swigt__p_nodeType,
9594
 
  &_swigt__p_nodeViewSortType,
9595
 
  &_swigt__p_nodeViewType,
9596
 
  &_swigt__p_socialSite,
9597
 
  &_swigt__p_subscription,
9598
 
  &_swigt__p_subscriptionType,
9599
 
  &_swigt__p_time_t,
9600
 
  &_swigt__p_updateJob,
9601
 
  &_swigt__p_updateOptionsPtr,
9602
 
  &_swigt__p_updateStatePtr,
9603
 
  &_swigt__p_xmlNodePtr,
9604
 
};
9605
 
 
9606
 
static swig_cast_info _swigc__p_GHashTable[] = {  {&_swigt__p_GHashTable, 0, 0, 0},{0, 0, 0, 0}};
9607
 
static swig_cast_info _swigc__p_GList[] = {  {&_swigt__p_GList, 0, 0, 0},{0, 0, 0, 0}};
9608
 
static swig_cast_info _swigc__p_GSList[] = {  {&_swigt__p_GSList, 0, 0, 0},{0, 0, 0, 0}};
9609
 
static swig_cast_info _swigc__p_GTimeVal[] = {  {&_swigt__p_GTimeVal, 0, 0, 0},{0, 0, 0, 0}};
9610
 
static swig_cast_info _swigc__p_GtkButton[] = {  {&_swigt__p_GtkButton, 0, 0, 0},{0, 0, 0, 0}};
9611
 
static swig_cast_info _swigc__p_GtkMenuItem[] = {  {&_swigt__p_GtkMenuItem, 0, 0, 0},{0, 0, 0, 0}};
9612
 
static swig_cast_info _swigc__p_GtkRadioAction[] = {  {&_swigt__p_GtkRadioAction, 0, 0, 0},{0, 0, 0, 0}};
9613
 
static swig_cast_info _swigc__p_GtkToggleAction[] = {  {&_swigt__p_GtkToggleAction, 0, 0, 0},{0, 0, 0, 0}};
9614
 
static swig_cast_info _swigc__p_GtkTreeIter[] = {  {&_swigt__p_GtkTreeIter, 0, 0, 0},{0, 0, 0, 0}};
9615
 
static swig_cast_info _swigc__p_GtkTreePath[] = {  {&_swigt__p_GtkTreePath, 0, 0, 0},{0, 0, 0, 0}};
9616
 
static swig_cast_info _swigc__p_GtkTreeSelection[] = {  {&_swigt__p_GtkTreeSelection, 0, 0, 0},{0, 0, 0, 0}};
9617
 
static swig_cast_info _swigc__p_GtkTreeSortable[] = {  {&_swigt__p_GtkTreeSortable, 0, 0, 0},{0, 0, 0, 0}};
9618
 
static swig_cast_info _swigc__p_GtkTreeStore[] = {  {&_swigt__p_GtkTreeStore, 0, 0, 0},{0, 0, 0, 0}};
9619
 
static swig_cast_info _swigc__p_GtkTreeView[] = {  {&_swigt__p_GtkTreeView, 0, 0, 0},{0, 0, 0, 0}};
9620
 
static swig_cast_info _swigc__p_GtkTreeViewColumn[] = {  {&_swigt__p_GtkTreeViewColumn, 0, 0, 0},{0, 0, 0, 0}};
9621
 
static swig_cast_info _swigc__p_GtkWidget[] = {  {&_swigt__p_GtkWidget, 0, 0, 0},{0, 0, 0, 0}};
9622
 
static swig_cast_info _swigc__p_gpointer[] = {  {&_swigt__p_gpointer, 0, 0, 0},{0, 0, 0, 0}};
9623
 
static swig_cast_info _swigc__p_gulong[] = {  {&_swigt__p_gulong, 0, 0, 0},{0, 0, 0, 0}};
9624
 
static swig_cast_info _swigc__p_item[] = {  {&_swigt__p_item, 0, 0, 0},{0, 0, 0, 0}};
9625
 
static swig_cast_info _swigc__p_itemSetPtr[] = {  {&_swigt__p_itemSetPtr, 0, 0, 0},{0, 0, 0, 0}};
9626
 
static swig_cast_info _swigc__p_node[] = {  {&_swigt__p_node, 0, 0, 0},{0, 0, 0, 0}};
9627
 
static swig_cast_info _swigc__p_nodeSource[] = {  {&_swigt__p_nodeSource, 0, 0, 0},{0, 0, 0, 0}};
9628
 
static swig_cast_info _swigc__p_nodeType[] = {  {&_swigt__p_nodeType, 0, 0, 0},{0, 0, 0, 0}};
9629
 
static swig_cast_info _swigc__p_nodeViewSortType[] = {  {&_swigt__p_nodeViewSortType, 0, 0, 0},{0, 0, 0, 0}};
9630
 
static swig_cast_info _swigc__p_nodeViewType[] = {  {&_swigt__p_nodeViewType, 0, 0, 0},{0, 0, 0, 0}};
9631
 
static swig_cast_info _swigc__p_socialSite[] = {  {&_swigt__p_socialSite, 0, 0, 0},{0, 0, 0, 0}};
9632
 
static swig_cast_info _swigc__p_subscription[] = {  {&_swigt__p_subscription, 0, 0, 0},{0, 0, 0, 0}};
9633
 
static swig_cast_info _swigc__p_subscriptionType[] = {  {&_swigt__p_subscriptionType, 0, 0, 0},{0, 0, 0, 0}};
9634
 
static swig_cast_info _swigc__p_time_t[] = {  {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
9635
 
static swig_cast_info _swigc__p_updateJob[] = {  {&_swigt__p_updateJob, 0, 0, 0},{0, 0, 0, 0}};
9636
 
static swig_cast_info _swigc__p_updateOptionsPtr[] = {  {&_swigt__p_updateOptionsPtr, 0, 0, 0},{0, 0, 0, 0}};
9637
 
static swig_cast_info _swigc__p_updateStatePtr[] = {  {&_swigt__p_updateStatePtr, 0, 0, 0},{0, 0, 0, 0}};
9638
 
static swig_cast_info _swigc__p_xmlNodePtr[] = {  {&_swigt__p_xmlNodePtr, 0, 0, 0},{0, 0, 0, 0}};
9639
 
 
9640
 
static swig_cast_info *swig_cast_initial[] = {
9641
 
  _swigc__p_GHashTable,
9642
 
  _swigc__p_GList,
9643
 
  _swigc__p_GSList,
9644
 
  _swigc__p_GTimeVal,
9645
 
  _swigc__p_GtkButton,
9646
 
  _swigc__p_GtkMenuItem,
9647
 
  _swigc__p_GtkRadioAction,
9648
 
  _swigc__p_GtkToggleAction,
9649
 
  _swigc__p_GtkTreeIter,
9650
 
  _swigc__p_GtkTreePath,
9651
 
  _swigc__p_GtkTreeSelection,
9652
 
  _swigc__p_GtkTreeSortable,
9653
 
  _swigc__p_GtkTreeStore,
9654
 
  _swigc__p_GtkTreeView,
9655
 
  _swigc__p_GtkTreeViewColumn,
9656
 
  _swigc__p_GtkWidget,
9657
 
  _swigc__p_gpointer,
9658
 
  _swigc__p_gulong,
9659
 
  _swigc__p_item,
9660
 
  _swigc__p_itemSetPtr,
9661
 
  _swigc__p_node,
9662
 
  _swigc__p_nodeSource,
9663
 
  _swigc__p_nodeType,
9664
 
  _swigc__p_nodeViewSortType,
9665
 
  _swigc__p_nodeViewType,
9666
 
  _swigc__p_socialSite,
9667
 
  _swigc__p_subscription,
9668
 
  _swigc__p_subscriptionType,
9669
 
  _swigc__p_time_t,
9670
 
  _swigc__p_updateJob,
9671
 
  _swigc__p_updateOptionsPtr,
9672
 
  _swigc__p_updateStatePtr,
9673
 
  _swigc__p_xmlNodePtr,
9674
 
};
9675
 
 
9676
 
 
9677
 
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9678
 
 
9679
 
/* -----------------------------------------------------------------------------
9680
 
 * Type initialization:
9681
 
 * This problem is tough by the requirement that no dynamic 
9682
 
 * memory is used. Also, since swig_type_info structures store pointers to 
9683
 
 * swig_cast_info structures and swig_cast_info structures store pointers back
9684
 
 * to swig_type_info structures, we need some lookup code at initialization. 
9685
 
 * The idea is that swig generates all the structures that are needed. 
9686
 
 * The runtime then collects these partially filled structures. 
9687
 
 * The SWIG_InitializeModule function takes these initial arrays out of 
9688
 
 * swig_module, and does all the lookup, filling in the swig_module.types
9689
 
 * array with the correct data and linking the correct swig_cast_info
9690
 
 * structures together.
9691
 
 *
9692
 
 * The generated swig_type_info structures are assigned staticly to an initial 
9693
 
 * array. We just loop through that array, and handle each type individually.
9694
 
 * First we lookup if this type has been already loaded, and if so, use the
9695
 
 * loaded structure instead of the generated one. Then we have to fill in the
9696
 
 * cast linked list. The cast data is initially stored in something like a
9697
 
 * two-dimensional array. Each row corresponds to a type (there are the same
9698
 
 * number of rows as there are in the swig_type_initial array). Each entry in
9699
 
 * a column is one of the swig_cast_info structures for that type.
9700
 
 * The cast_initial array is actually an array of arrays, because each row has
9701
 
 * a variable number of columns. So to actually build the cast linked list,
9702
 
 * we find the array of casts associated with the type, and loop through it 
9703
 
 * adding the casts to the list. The one last trick we need to do is making
9704
 
 * sure the type pointer in the swig_cast_info struct is correct.
9705
 
 *
9706
 
 * First off, we lookup the cast->type name to see if it is already loaded. 
9707
 
 * There are three cases to handle:
9708
 
 *  1) If the cast->type has already been loaded AND the type we are adding
9709
 
 *     casting info to has not been loaded (it is in this module), THEN we
9710
 
 *     replace the cast->type pointer with the type pointer that has already
9711
 
 *     been loaded.
9712
 
 *  2) If BOTH types (the one we are adding casting info to, and the 
9713
 
 *     cast->type) are loaded, THEN the cast info has already been loaded by
9714
 
 *     the previous module so we just ignore it.
9715
 
 *  3) Finally, if cast->type has not already been loaded, then we add that
9716
 
 *     swig_cast_info to the linked list (because the cast->type) pointer will
9717
 
 *     be correct.
9718
 
 * ----------------------------------------------------------------------------- */
9719
 
 
9720
 
#ifdef __cplusplus
9721
 
extern "C" {
9722
 
#if 0
9723
 
} /* c-mode */
9724
 
#endif
9725
 
#endif
9726
 
 
9727
 
#if 0
9728
 
#define SWIGRUNTIME_DEBUG
9729
 
#endif
9730
 
 
9731
 
 
9732
 
SWIGRUNTIME void
9733
 
SWIG_InitializeModule(void *clientdata) {
9734
 
  size_t i;
9735
 
  swig_module_info *module_head, *iter;
9736
 
  int found, init;
9737
 
 
9738
 
  clientdata = clientdata;
9739
 
 
9740
 
  /* check to see if the circular list has been setup, if not, set it up */
9741
 
  if (swig_module.next==0) {
9742
 
    /* Initialize the swig_module */
9743
 
    swig_module.type_initial = swig_type_initial;
9744
 
    swig_module.cast_initial = swig_cast_initial;
9745
 
    swig_module.next = &swig_module;
9746
 
    init = 1;
9747
 
  } else {
9748
 
    init = 0;
9749
 
  }
9750
 
 
9751
 
  /* Try and load any already created modules */
9752
 
  module_head = SWIG_GetModule(clientdata);
9753
 
  if (!module_head) {
9754
 
    /* This is the first module loaded for this interpreter */
9755
 
    /* so set the swig module into the interpreter */
9756
 
    SWIG_SetModule(clientdata, &swig_module);
9757
 
    module_head = &swig_module;
9758
 
  } else {
9759
 
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
9760
 
    found=0;
9761
 
    iter=module_head;
9762
 
    do {
9763
 
      if (iter==&swig_module) {
9764
 
        found=1;
9765
 
        break;
9766
 
      }
9767
 
      iter=iter->next;
9768
 
    } while (iter!= module_head);
9769
 
 
9770
 
    /* if the is found in the list, then all is done and we may leave */
9771
 
    if (found) return;
9772
 
    /* otherwise we must add out module into the list */
9773
 
    swig_module.next = module_head->next;
9774
 
    module_head->next = &swig_module;
9775
 
  }
9776
 
 
9777
 
  /* When multiple interpeters are used, a module could have already been initialized in
9778
 
     a different interpreter, but not yet have a pointer in this interpreter.
9779
 
     In this case, we do not want to continue adding types... everything should be
9780
 
     set up already */
9781
 
  if (init == 0) return;
9782
 
 
9783
 
  /* Now work on filling in swig_module.types */
9784
 
#ifdef SWIGRUNTIME_DEBUG
9785
 
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
9786
 
#endif
9787
 
  for (i = 0; i < swig_module.size; ++i) {
9788
 
    swig_type_info *type = 0;
9789
 
    swig_type_info *ret;
9790
 
    swig_cast_info *cast;
9791
 
  
9792
 
#ifdef SWIGRUNTIME_DEBUG
9793
 
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9794
 
#endif
9795
 
 
9796
 
    /* if there is another module already loaded */
9797
 
    if (swig_module.next != &swig_module) {
9798
 
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
9799
 
    }
9800
 
    if (type) {
9801
 
      /* Overwrite clientdata field */
9802
 
#ifdef SWIGRUNTIME_DEBUG
9803
 
      printf("SWIG_InitializeModule: found type %s\n", type->name);
9804
 
#endif
9805
 
      if (swig_module.type_initial[i]->clientdata) {
9806
 
        type->clientdata = swig_module.type_initial[i]->clientdata;
9807
 
#ifdef SWIGRUNTIME_DEBUG
9808
 
      printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
9809
 
#endif
9810
 
      }
9811
 
    } else {
9812
 
      type = swig_module.type_initial[i];
9813
 
    }
9814
 
 
9815
 
    /* Insert casting types */
9816
 
    cast = swig_module.cast_initial[i];
9817
 
    while (cast->type) {
9818
 
    
9819
 
      /* Don't need to add information already in the list */
9820
 
      ret = 0;
9821
 
#ifdef SWIGRUNTIME_DEBUG
9822
 
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
9823
 
#endif
9824
 
      if (swig_module.next != &swig_module) {
9825
 
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
9826
 
#ifdef SWIGRUNTIME_DEBUG
9827
 
        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
9828
 
#endif
9829
 
      }
9830
 
      if (ret) {
9831
 
        if (type == swig_module.type_initial[i]) {
9832
 
#ifdef SWIGRUNTIME_DEBUG
9833
 
          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
9834
 
#endif
9835
 
          cast->type = ret;
9836
 
          ret = 0;
9837
 
        } else {
9838
 
          /* Check for casting already in the list */
9839
 
          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
9840
 
#ifdef SWIGRUNTIME_DEBUG
9841
 
          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
9842
 
#endif
9843
 
          if (!ocast) ret = 0;
9844
 
        }
9845
 
      }
9846
 
 
9847
 
      if (!ret) {
9848
 
#ifdef SWIGRUNTIME_DEBUG
9849
 
        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
9850
 
#endif
9851
 
        if (type->cast) {
9852
 
          type->cast->prev = cast;
9853
 
          cast->next = type->cast;
9854
 
        }
9855
 
        type->cast = cast;
9856
 
      }
9857
 
      cast++;
9858
 
    }
9859
 
    /* Set entry in modules->types array equal to the type */
9860
 
    swig_module.types[i] = type;
9861
 
  }
9862
 
  swig_module.types[i] = 0;
9863
 
 
9864
 
#ifdef SWIGRUNTIME_DEBUG
9865
 
  printf("**** SWIG_InitializeModule: Cast List ******\n");
9866
 
  for (i = 0; i < swig_module.size; ++i) {
9867
 
    int j = 0;
9868
 
    swig_cast_info *cast = swig_module.cast_initial[i];
9869
 
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9870
 
    while (cast->type) {
9871
 
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
9872
 
      cast++;
9873
 
      ++j;
9874
 
    }
9875
 
  printf("---- Total casts: %d\n",j);
9876
 
  }
9877
 
  printf("**** SWIG_InitializeModule: Cast List ******\n");
9878
 
#endif
9879
 
}
9880
 
 
9881
 
/* This function will propagate the clientdata field of type to
9882
 
* any new swig_type_info structures that have been added into the list
9883
 
* of equivalent types.  It is like calling
9884
 
* SWIG_TypeClientData(type, clientdata) a second time.
9885
 
*/
9886
 
SWIGRUNTIME void
9887
 
SWIG_PropagateClientData(void) {
9888
 
  size_t i;
9889
 
  swig_cast_info *equiv;
9890
 
  static int init_run = 0;
9891
 
 
9892
 
  if (init_run) return;
9893
 
  init_run = 1;
9894
 
 
9895
 
  for (i = 0; i < swig_module.size; i++) {
9896
 
    if (swig_module.types[i]->clientdata) {
9897
 
      equiv = swig_module.types[i]->cast;
9898
 
      while (equiv) {
9899
 
        if (!equiv->converter) {
9900
 
          if (equiv->type && !equiv->type->clientdata)
9901
 
            SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
9902
 
        }
9903
 
        equiv = equiv->next;
9904
 
      }
9905
 
    }
9906
 
  }
9907
 
}
9908
 
 
9909
 
#ifdef __cplusplus
9910
 
#if 0
9911
 
{ /* c-mode */
9912
 
#endif
9913
 
}
9914
 
#endif
9915
 
 
9916
 
 
9917
 
 
9918
 
/* Forward declaration of where the user's %init{} gets inserted */
9919
 
void SWIG_init_user(lua_State* L );
9920
 
    
9921
 
#ifdef __cplusplus
9922
 
extern "C" {
9923
 
#endif
9924
 
/* this is the initialization function
9925
 
  added at the very end of the code
9926
 
  the function is always called SWIG_init, but an eariler #define will rename it
9927
 
*/
9928
 
SWIGEXPORT int SWIG_init(lua_State* L)
9929
 
{
9930
 
  int i;
9931
 
  /* start with global table */
9932
 
  lua_pushvalue(L,LUA_GLOBALSINDEX);
9933
 
  /* SWIG's internal initalisation */
9934
 
  SWIG_InitializeModule((void*)L);
9935
 
  SWIG_PropagateClientData();
9936
 
  /* add a global fn */
9937
 
  SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type);
9938
 
  SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal);
9939
 
  /* begin the module (its a table with the same name as the module) */
9940
 
  SWIG_Lua_module_begin(L,SWIG_name);
9941
 
  /* add commands/functions */
9942
 
  for (i = 0; swig_commands[i].name; i++){
9943
 
    SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func);
9944
 
  }
9945
 
  /* add variables */
9946
 
  for (i = 0; swig_variables[i].name; i++){
9947
 
    SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set);
9948
 
  }
9949
 
  /* set up base class pointers (the hierachy) */
9950
 
  for (i = 0; swig_types[i]; i++){
9951
 
    if (swig_types[i]->clientdata){
9952
 
      SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
9953
 
    }
9954
 
  }
9955
 
  /* additional registration structs & classes in lua */
9956
 
  for (i = 0; swig_types[i]; i++){
9957
 
    if (swig_types[i]->clientdata){
9958
 
      SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata));
9959
 
    }
9960
 
  }
9961
 
  /* constants */
9962
 
  SWIG_Lua_InstallConstants(L,swig_constants);
9963
 
  /* invoke user-specific initialization */
9964
 
  SWIG_init_user(L);
9965
 
  /* end module */
9966
 
  lua_pop(L,1);  /* tidy stack (remove module table)*/
9967
 
  lua_pop(L,1);  /* tidy stack (remove global table)*/
9968
 
  return 1;
9969
 
}
9970
 
 
9971
 
#ifdef __cplusplus
9972
 
}
9973
 
#endif
9974
 
 
9975
 
 
9976
 
const char* SWIG_LUACODE=
9977
 
  "";
9978
 
 
9979
 
void SWIG_init_user(lua_State* L)
9980
 
{
9981
 
  /* exec Lua code if applicable */
9982
 
  SWIG_Lua_dostring(L,SWIG_LUACODE);
9983
 
}
9984