1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974
|
/*
* FILE : pxlib_wrap.cc
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator (SWIG)
* Version 1.1 (Patch 5)
*
* Portions Copyright (c) 1995-1998
* The University of Utah and The Regents of the University of California.
* Permission is granted to distribute this file in any manner provided
* this notice remains intact.
*
* Do not make changes to this file--changes will be lost!
*
*/
#define SWIGCODE
/* Implementation : PYTHON */
#define SWIGPYTHON
#include <string.h>
#include <stdlib.h>
/***********************************************************************
* $Header:$
* swig_lib/python/python.cfg
*
* This file contains coded needed to add variable linking to the
* Python interpreter. C variables are added as a new kind of Python
* datatype.
*
* Also contains supporting code for building python under Windows
* and things like that.
*
* $Log:$
************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
#ifdef __cplusplus
}
#endif
/* Definitions for Windows/Unix exporting */
#if defined(__WIN32__)
# if defined(_MSC_VER)
# define SWIGEXPORT(a,b) __declspec(dllexport) a b
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a,b) a _export b
# else
# define SWIGEXPORT(a,b) a b
# endif
# endif
#else
# define SWIGEXPORT(a,b) a b
#endif
#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif
#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif
typedef struct {
char *name;
PyObject *(*get_attr)(void);
int (*set_attr)(PyObject *);
} swig_globalvar;
typedef struct swig_varlinkobject {
PyObject_HEAD
swig_globalvar **vars;
int nvars;
int maxvars;
} swig_varlinkobject;
/* ----------------------------------------------------------------------
swig_varlink_repr()
Function for python repr method
---------------------------------------------------------------------- */
static PyObject *
swig_varlink_repr(swig_varlinkobject *v)
{
v = v;
return PyString_FromString("<Global variables>");
}
/* ---------------------------------------------------------------------
swig_varlink_print()
Print out all of the global variable names
--------------------------------------------------------------------- */
static int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags)
{
int i = 0;
flags = flags;
fprintf(fp,"Global variables { ");
while (v->vars[i]) {
fprintf(fp,"%s", v->vars[i]->name);
i++;
if (v->vars[i]) fprintf(fp,", ");
}
fprintf(fp," }\n");
return 0;
}
/* --------------------------------------------------------------------
swig_varlink_getattr
This function gets the value of a variable and returns it as a
PyObject. In our case, we'll be looking at the datatype and
converting into a number or string
-------------------------------------------------------------------- */
static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n)
{
int i = 0;
char temp[128];
while (v->vars[i]) {
if (strcmp(v->vars[i]->name,n) == 0) {
return (*v->vars[i]->get_attr)();
}
i++;
}
sprintf(temp,"C global variable %s not found.", n);
PyErr_SetString(PyExc_NameError,temp);
return NULL;
}
/* -------------------------------------------------------------------
swig_varlink_setattr()
This function sets the value of a variable.
------------------------------------------------------------------- */
static int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
{
char temp[128];
int i = 0;
while (v->vars[i]) {
if (strcmp(v->vars[i]->name,n) == 0) {
return (*v->vars[i]->set_attr)(p);
}
i++;
}
sprintf(temp,"C global variable %s not found.", n);
PyErr_SetString(PyExc_NameError,temp);
return 1;
}
statichere PyTypeObject varlinktype = {
/* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */
PyObject_HEAD_INIT(0)
0,
"varlink", /* Type name */
sizeof(swig_varlinkobject), /* Basic size */
0, /* Itemsize */
0, /* Deallocator */
(printfunc) swig_varlink_print, /* Print */
(getattrfunc) swig_varlink_getattr, /* get attr */
(setattrfunc) swig_varlink_setattr, /* Set attr */
0, /* tp_compare */
(reprfunc) swig_varlink_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_mapping*/
0, /* tp_hash */
};
/* Create a variable linking object for use later */
SWIGSTATIC PyObject *
SWIG_newvarlink(void)
{
swig_varlinkobject *result = 0;
result = PyMem_NEW(swig_varlinkobject,1);
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
result->ob_type = &varlinktype;
/* _Py_NewReference(result); Does not seem to be necessary */
result->nvars = 0;
result->maxvars = 64;
result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *));
result->vars[0] = 0;
result->ob_refcnt = 0;
Py_XINCREF((PyObject *) result);
return ((PyObject*) result);
}
SWIGSTATIC void
SWIG_addvarlink(PyObject *p, char *name,
PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p))
{
swig_varlinkobject *v;
v= (swig_varlinkobject *) p;
if (v->nvars >= v->maxvars -1) {
v->maxvars = 2*v->maxvars;
v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *));
if (v->vars == NULL) {
fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n");
exit(1);
}
}
v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar));
v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1);
strcpy(v->vars[v->nvars]->name,name);
v->vars[v->nvars]->get_attr = get_attr;
v->vars[v->nvars]->set_attr = set_attr;
v->nvars++;
v->vars[v->nvars] = 0;
}
/*****************************************************************************
* $Header:$
*
* swigptr.swg
*
* This file contains supporting code for the SWIG run-time type checking
* mechanism. The following functions are available :
*
* SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
*
* Registers a new type-mapping with the type-checker. origtype is the
* original datatype and newtype is an equivalent type. cast is optional
* pointer to a function to cast pointer values between types (this
* is typically used to cast pointers from derived classes to base classes in C++)
*
* SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
*
* Makes a pointer string from a pointer and typestring. The result is returned
* in buffer which is assumed to hold enough space for the result.
*
* char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
*
* Gets a pointer value from a string. If there is a type-mismatch, returns
* a character string to the received type. On success, returns NULL.
*
*
* You can remap these functions by making a file called "swigptr.swg" in
* your the same directory as the interface file you are wrapping.
*
* These functions are normally declared static, but this file can be
* can be used in a multi-module environment by redefining the symbol
* SWIGSTATIC.
*****************************************************************************/
#include <stdlib.h>
#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif
#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif
/* SWIG pointer structure */
typedef struct SwigPtrType {
char *name; /* Datatype name */
int len; /* Length (used for optimization) */
void *(*cast)(void *); /* Pointer casting function */
struct SwigPtrType *next; /* Linked list pointer */
} SwigPtrType;
/* Pointer cache structure */
typedef struct {
int stat; /* Status (valid) bit */
SwigPtrType *tp; /* Pointer to type structure */
char name[256]; /* Given datatype name */
char mapped[256]; /* Equivalent name */
} SwigCacheType;
/* Some variables */
static int SwigPtrMax = 64; /* Max entries that can be currently held */
/* This value may be adjusted dynamically */
static int SwigPtrN = 0; /* Current number of entries */
static int SwigPtrSort = 0; /* Status flag indicating sort */
static int SwigStart[256]; /* Starting positions of types */
/* Pointer table */
static SwigPtrType *SwigPtrTable = 0; /* Table containing pointer equivalences */
/* Cached values */
#define SWIG_CACHESIZE 8
#define SWIG_CACHEMASK 0x7
static SwigCacheType SwigCache[SWIG_CACHESIZE];
static int SwigCacheIndex = 0;
static int SwigLastCache = 0;
/* Sort comparison function */
static int swigsort(const void *data1, const void *data2) {
SwigPtrType *d1 = (SwigPtrType *) data1;
SwigPtrType *d2 = (SwigPtrType *) data2;
return strcmp(d1->name,d2->name);
}
/* Binary Search function */
static int swigcmp(const void *key, const void *data) {
char *k = (char *) key;
SwigPtrType *d = (SwigPtrType *) data;
return strncmp(k,d->name,d->len);
}
/* Register a new datatype with the type-checker */
SWIGSTATIC
void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) {
int i;
SwigPtrType *t = 0,*t1;
/* Allocate the pointer table if necessary */
if (!SwigPtrTable) {
SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType));
SwigPtrN = 0;
}
/* Grow the table */
if (SwigPtrN >= SwigPtrMax) {
SwigPtrMax = 2*SwigPtrMax;
SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType));
}
for (i = 0; i < SwigPtrN; i++)
if (strcmp(SwigPtrTable[i].name,origtype) == 0) {
t = &SwigPtrTable[i];
break;
}
if (!t) {
t = &SwigPtrTable[SwigPtrN];
t->name = origtype;
t->len = strlen(t->name);
t->cast = 0;
t->next = 0;
SwigPtrN++;
}
/* Check for existing entry */
while (t->next) {
if ((strcmp(t->name,newtype) == 0)) {
if (cast) t->cast = cast;
return;
}
t = t->next;
}
/* Now place entry (in sorted order) */
t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType));
t1->name = newtype;
t1->len = strlen(t1->name);
t1->cast = cast;
t1->next = 0;
t->next = t1;
SwigPtrSort = 0;
}
/* Make a pointer value string */
SWIGSTATIC
void SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
static char _hex[16] =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'};
unsigned long _p, _s;
char _result[20], *_r; /* Note : a 64-bit hex number = 16 digits */
_r = _result;
_p = (unsigned long) _ptr;
if (_p > 0) {
while (_p > 0) {
_s = _p & 0xf;
*(_r++) = _hex[_s];
_p = _p >> 4;
}
*_r = '_';
while (_r >= _result)
*(_c++) = *(_r--);
} else {
strcpy (_c, "NULL");
}
if (_ptr)
strcpy (_c, type);
}
/* Define for backwards compatibility */
#define _swig_make_hex SWIG_MakePtr
/* Function for getting a pointer value */
SWIGSTATIC
char *SWIG_GetPtr(char *_c, void **ptr, char *_t)
{
unsigned long _p;
char temp_type[256];
char *name;
int i, len;
SwigPtrType *sp,*tp;
SwigCacheType *cache;
int start, end;
_p = 0;
/* Pointer values must start with leading underscore */
if (*_c == '_') {
_c++;
/* Extract hex value from pointer */
while (*_c) {
if ((*_c >= '0') && (*_c <= '9'))
_p = (_p << 4) + (*_c - '0');
else if ((*_c >= 'a') && (*_c <= 'f'))
_p = (_p << 4) + ((*_c - 'a') + 10);
else
break;
_c++;
}
if (_t) {
if (strcmp(_t,_c)) {
if (!SwigPtrSort) {
qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort);
for (i = 0; i < 256; i++) {
SwigStart[i] = SwigPtrN;
}
for (i = SwigPtrN-1; i >= 0; i--) {
SwigStart[(int) (SwigPtrTable[i].name[1])] = i;
}
for (i = 255; i >= 1; i--) {
if (SwigStart[i-1] > SwigStart[i])
SwigStart[i-1] = SwigStart[i];
}
SwigPtrSort = 1;
for (i = 0; i < SWIG_CACHESIZE; i++)
SwigCache[i].stat = 0;
}
/* First check cache for matches. Uses last cache value as starting point */
cache = &SwigCache[SwigLastCache];
for (i = 0; i < SWIG_CACHESIZE; i++) {
if (cache->stat) {
if (strcmp(_t,cache->name) == 0) {
if (strcmp(_c,cache->mapped) == 0) {
cache->stat++;
*ptr = (void *) _p;
if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr);
return (char *) 0;
}
}
}
SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK;
if (!SwigLastCache) cache = SwigCache;
else cache++;
}
/* We have a type mismatch. Will have to look through our type
mapping table to figure out whether or not we can accept this datatype */
start = SwigStart[(int) _t[1]];
end = SwigStart[(int) _t[1]+1];
sp = &SwigPtrTable[start];
while (start < end) {
if (swigcmp(_t,sp) == 0) break;
sp++;
start++;
}
if (start >= end) sp = 0;
/* Try to find a match for this */
if (sp) {
while (swigcmp(_t,sp) == 0) {
name = sp->name;
len = sp->len;
tp = sp->next;
/* Try to find entry for our given datatype */
while(tp) {
if (tp->len >= 255) {
return _c;
}
strcpy(temp_type,tp->name);
strncat(temp_type,_t+len,255-tp->len);
if (strcmp(_c,temp_type) == 0) {
strcpy(SwigCache[SwigCacheIndex].mapped,_c);
strcpy(SwigCache[SwigCacheIndex].name,_t);
SwigCache[SwigCacheIndex].stat = 1;
SwigCache[SwigCacheIndex].tp = tp;
SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK;
/* Get pointer value */
*ptr = (void *) _p;
if (tp->cast) *ptr = (*(tp->cast))(*ptr);
return (char *) 0;
}
tp = tp->next;
}
sp++;
/* Hmmm. Didn't find it this time */
}
}
/* Didn't find any sort of match for this data.
Get the pointer value and return the received type */
*ptr = (void *) _p;
return _c;
} else {
/* Found a match on the first try. Return pointer value */
*ptr = (void *) _p;
return (char *) 0;
}
} else {
/* No type specified. Good luck */
*ptr = (void *) _p;
return (char *) 0;
}
} else {
if (strcmp (_c, "NULL") == 0) {
*ptr = (void *) 0;
return (char *) 0;
}
*ptr = (void *) 0;
return _c;
}
}
/* Compatibility mode */
#define _swig_get_hex SWIG_GetPtr
#define SWIG_init initpxlibc
#define SWIG_name "pxlibc"
#include "pxlib.h"
#include "PxWindow.h"
using namespace pyxine;
#define new_PxDisplay(_swigarg0) (new PxDisplay(_swigarg0))
static PyObject *_wrap_new_PxDisplay(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxDisplay * _result;
char * _arg0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:new_PxDisplay",&_arg0))
return NULL;
{
try {
_result = (PxDisplay *)new_PxDisplay(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} SWIG_MakePtr(_ptemp, (char *) _result,"_PxDisplay_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define delete_PxDisplay(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_PxDisplay(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxDisplay * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:delete_PxDisplay",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxDisplay_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_PxDisplay. Expected _PxDisplay_p.");
return NULL;
}
}
{
try {
delete_PxDisplay(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define PxDisplay_has_windows(_swigobj) (_swigobj->has_windows())
static PyObject *_wrap_PxDisplay_has_windows(PyObject *self, PyObject *args) {
PyObject * _resultobj;
bool _result;
PxDisplay * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PxDisplay_has_windows",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxDisplay_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxDisplay_has_windows. Expected _PxDisplay_p.");
return NULL;
}
}
{
try {
_result = (bool )PxDisplay_has_windows(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define new_PxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new PxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_PxWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxWindow * _result;
PxDisplay * _arg0;
Window _arg1;
PyObject * _arg2;
PyObject * _arg3;
char * _argc0 = 0;
PyObject * _obj2 = 0;
PyObject * _obj3 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"slOO:new_PxWindow",&_argc0,&_arg1,&_obj2,&_obj3))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxDisplay_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_PxWindow. Expected _PxDisplay_p.");
return NULL;
}
}
{ _arg2 = _obj2; }
{ _arg3 = _obj3; }
{
try {
_result = (PxWindow *)new_PxWindow(_arg0,_arg1,_arg2,_arg3);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} SWIG_MakePtr(_ptemp, (char *) _result,"_PxWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define delete_PxWindow(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_PxWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxWindow * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:delete_PxWindow",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_PxWindow. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
delete_PxWindow(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define PxWindow_get_window_geometry(_swigobj) (_swigobj->get_window_geometry())
static PyObject *_wrap_PxWindow_get_window_geometry(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PyObject * _result;
PxWindow * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PxWindow_get_window_geometry",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_get_window_geometry. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
_result = (PyObject *)PxWindow_get_window_geometry(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
}{ _resultobj = _result; }
return _resultobj;
}
#define PxWindow_get_xine_x11_visual(_swigobj) (_swigobj->get_xine_x11_visual())
static PyObject *_wrap_PxWindow_get_xine_x11_visual(PyObject *self, PyObject *args) {
PyObject * _resultobj;
x11_visual_t * _result;
PxWindow * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:PxWindow_get_xine_x11_visual",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_get_xine_x11_visual. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
_result = (x11_visual_t *)PxWindow_get_xine_x11_visual(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} SWIG_MakePtr(_ptemp, (char *) _result,"_x11_visual_t_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define PxWindow_set_xine_stream(_swigobj,_swigarg0) (_swigobj->set_xine_stream(_swigarg0))
static PyObject *_wrap_PxWindow_set_xine_stream(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxWindow * _arg0;
xine_stream_t * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:PxWindow_set_xine_stream",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_set_xine_stream. Expected _PxWindow_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_xine_stream_t_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PxWindow_set_xine_stream. Expected _xine_stream_t_p.");
return NULL;
}
}
{
try {
PxWindow_set_xine_stream(_arg0,_arg1);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define PxWindow_get_verbosity(_swigobj) (_swigobj->get_verbosity())
static PyObject *_wrap_PxWindow_get_verbosity(PyObject *self, PyObject *args) {
PyObject * _resultobj;
int _result;
PxWindow * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PxWindow_get_verbosity",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_get_verbosity. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
_result = (int )PxWindow_get_verbosity(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
#define PxWindow_set_verbosity(_swigobj,_swigarg0) (_swigobj->set_verbosity(_swigarg0))
static PyObject *_wrap_PxWindow_set_verbosity(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxWindow * _arg0;
int _arg1;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"si:PxWindow_set_verbosity",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_set_verbosity. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
PxWindow_set_verbosity(_arg0,_arg1);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define PxWindow_get_pixel_aspect(_swigobj) (_swigobj->get_pixel_aspect())
static PyObject *_wrap_PxWindow_get_pixel_aspect(PyObject *self, PyObject *args) {
PyObject * _resultobj;
double _result;
PxWindow * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PxWindow_get_pixel_aspect",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_get_pixel_aspect. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
_result = (double )PxWindow_get_pixel_aspect(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
#define PxWindow_invalidate_cache(_swigobj) (_swigobj->invalidate_cache())
static PyObject *_wrap_PxWindow_invalidate_cache(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PxWindow * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:PxWindow_invalidate_cache",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PxWindow_invalidate_cache. Expected _PxWindow_p.");
return NULL;
}
}
{
try {
PxWindow_invalidate_cache(_arg0);
;
}
catch (Error e) {
PyErr_SetString(PyExc_Exception, e.get_message());
return 0;
}
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static PyMethodDef pxlibcMethods[] = {
{ "PxWindow_invalidate_cache", _wrap_PxWindow_invalidate_cache, 1 },
{ "PxWindow_get_pixel_aspect", _wrap_PxWindow_get_pixel_aspect, 1 },
{ "PxWindow_set_verbosity", _wrap_PxWindow_set_verbosity, 1 },
{ "PxWindow_get_verbosity", _wrap_PxWindow_get_verbosity, 1 },
{ "PxWindow_set_xine_stream", _wrap_PxWindow_set_xine_stream, 1 },
{ "PxWindow_get_xine_x11_visual", _wrap_PxWindow_get_xine_x11_visual, 1 },
{ "PxWindow_get_window_geometry", _wrap_PxWindow_get_window_geometry, 1 },
{ "delete_PxWindow", _wrap_delete_PxWindow, 1 },
{ "new_PxWindow", _wrap_new_PxWindow, 1 },
{ "PxDisplay_has_windows", _wrap_PxDisplay_has_windows, 1 },
{ "delete_PxDisplay", _wrap_delete_PxDisplay, 1 },
{ "new_PxDisplay", _wrap_new_PxDisplay, 1 },
{ NULL, NULL }
};
static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT(void,initpxlibc)() {
PyObject *m, *d;
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("pxlibc", pxlibcMethods);
d = PyModule_GetDict(m);
/*
* These are the pointer type-equivalency mappings.
* (Used by the SWIG pointer type-checker).
*/
SWIG_RegisterMapping("_signed_long","_long",0);
SWIG_RegisterMapping("_FrameOutputCallback","_CachedPythonCallback<_VideoGeometry,VideoOutputGeometry_>",0);
SWIG_RegisterMapping("_CachedPythonCallback<_VideoGeometry,VideoGeometry_>","_DestSizeCallback",0);
SWIG_RegisterMapping("_long","_Window",0);
SWIG_RegisterMapping("_long","_unsigned_long",0);
SWIG_RegisterMapping("_long","_signed_long",0);
SWIG_RegisterMapping("_PxWindow","_class_PxWindow",0);
SWIG_RegisterMapping("_Window","_unsigned_long",0);
SWIG_RegisterMapping("_Window","_long",0);
SWIG_RegisterMapping("_unsigned_long","_Window",0);
SWIG_RegisterMapping("_unsigned_long","_long",0);
SWIG_RegisterMapping("_signed_int","_int",0);
SWIG_RegisterMapping("_PxDisplay","_class_PxDisplay",0);
SWIG_RegisterMapping("_unsigned_short","_short",0);
SWIG_RegisterMapping("_signed_short","_short",0);
SWIG_RegisterMapping("_unsigned_int","_int",0);
SWIG_RegisterMapping("_class_PxDisplay","_PxDisplay",0);
SWIG_RegisterMapping("_short","_unsigned_short",0);
SWIG_RegisterMapping("_short","_signed_short",0);
SWIG_RegisterMapping("_int","_unsigned_int",0);
SWIG_RegisterMapping("_int","_signed_int",0);
SWIG_RegisterMapping("_DestSizeCallback","_CachedPythonCallback<_VideoGeometry,VideoGeometry_>",0);
SWIG_RegisterMapping("_class_PxWindow","_PxWindow",0);
SWIG_RegisterMapping("_CachedPythonCallback<_VideoGeometry,VideoOutputGeometry_>","_FrameOutputCallback",0);
}
|