1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
122
122
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
123
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124
124
# define _CRT_SECURE_NO_DEPRECATE
138
138
/* This should only be incremented when either the layout of swig_type_info changes,
139
139
or for whatever reason, the runtime changes incompatibly */
140
#define SWIG_RUNTIME_VERSION "3"
140
#define SWIG_RUNTIME_VERSION "2"
142
142
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143
143
#ifdef SWIG_TYPE_TABLE
797
/* Py_ssize_t for old Pythons */
798
/* This code is as recommended by: */
799
/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
800
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
801
typedef int Py_ssize_t;
802
# define PY_SSIZE_T_MAX INT_MAX
803
# define PY_SSIZE_T_MIN INT_MIN
806
800
/* -----------------------------------------------------------------------------
807
801
* error manipulation
2054
2048
void *vptr = 0;
2056
2050
/* here we get the method pointer for callbacks */
2057
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2051
char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2058
2052
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2060
2054
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2178
dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2172
dict = PyObject_GetAttrString(inst, "__dict__");
2179
2173
PyDict_SetItem(dict, SWIG_This(), swig_this);
2180
2174
Py_DECREF(dict);
2558
2552
#if (PY_VERSION_HEX <= 0x02000000)
2559
2553
# if !defined(SWIG_PYTHON_CLASSIC)
2560
# error "This python version requires swig to be run with the '-classic' option"
2554
# error "This python version requires to use swig with the '-classic' option"
2569
2563
#define SWIG_name "_lcms"
2571
#define SWIGVERSION 0x010331
2572
#define SWIG_VERSION SWIGVERSION
2565
#define SWIGVERSION 0x010329
2575
2568
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2923
2916
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2925
2918
if (PyString_Check(obj)) {
2926
char *cstr; Py_ssize_t len;
2919
char *cstr; int len;
2927
2920
PyString_AsStringAndSize(obj, &cstr, &len);
4291
4284
if (!SWIG_IsOK(res2)) {
4292
4285
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
4294
arg2 = reinterpret_cast< char * >(buf2);
4295
4288
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4296
4289
if (!SWIG_IsOK(res3)) {
4297
4290
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "char const *""'");
4299
arg3 = reinterpret_cast< char * >(buf3);
4302
4295
InErrorFlag = 0;
4341
4334
if (!SWIG_IsOK(res2)) {
4342
4335
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
4344
arg2 = reinterpret_cast< char * >(buf2);
4345
4338
ecode3 = SWIG_AsVal_double(obj2, &val3);
4346
4339
if (!SWIG_IsOK(ecode3)) {
4347
4340
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "double""'");
4413
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setProperty'.\n Possible C/C++ prototypes are:\n setProperty(char const *,char const *)\n setProperty(char const *,double)\n");
4406
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setProperty'");
4442
4435
if (!SWIG_IsOK(res2)) {
4443
4436
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyAsHex" "', argument " "2"" of type '" "char const *""'");
4445
arg2 = reinterpret_cast< char * >(buf2);
4446
4439
ecode3 = SWIG_AsVal_int(obj2, &val3);
4447
4440
if (!SWIG_IsOK(ecode3)) {
4448
4441
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setPropertyAsHex" "', argument " "3"" of type '" "int""'");
4491
4484
if (!SWIG_IsOK(res2)) {
4492
4485
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
4494
arg2 = reinterpret_cast< char * >(buf2);
4495
4488
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4496
4489
if (!SWIG_IsOK(res3)) {
4497
4490
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
4499
arg3 = reinterpret_cast< char * >(buf3);
4502
4495
InErrorFlag = 0;
4537
4530
if (!SWIG_IsOK(res2)) {
4538
4531
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getProperty" "', argument " "2"" of type '" "char const *""'");
4540
arg2 = reinterpret_cast< char * >(buf2);
4543
4536
InErrorFlag = 0;
4544
4537
result = (char *)IT8_getProperty(arg1,(char const *)arg2);
4545
4538
if (InErrorFlag) SWIG_fail;
4547
resultobj = SWIG_FromCharPtr((const char *)result);
4540
resultobj = SWIG_FromCharPtr(result);
4548
4541
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4549
4542
return resultobj;
4630
4623
result = (char *)IT8_getData__SWIG_0(arg1,arg2,arg3);
4631
4624
if (InErrorFlag) SWIG_fail;
4633
resultobj = SWIG_FromCharPtr((const char *)result);
4626
resultobj = SWIG_FromCharPtr(result);
4634
4627
return resultobj;
4665
4658
if (!SWIG_IsOK(res2)) {
4666
4659
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getData" "', argument " "2"" of type '" "char const *""'");
4668
arg2 = reinterpret_cast< char * >(buf2);
4669
4662
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4670
4663
if (!SWIG_IsOK(res3)) {
4671
4664
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getData" "', argument " "3"" of type '" "char const *""'");
4673
arg3 = reinterpret_cast< char * >(buf3);
4676
4669
InErrorFlag = 0;
4677
4670
result = (char *)IT8_getData__SWIG_1(arg1,(char const *)arg2,(char const *)arg3);
4678
4671
if (InErrorFlag) SWIG_fail;
4680
resultobj = SWIG_FromCharPtr((const char *)result);
4673
resultobj = SWIG_FromCharPtr(result);
4681
4674
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4682
4675
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4683
4676
return resultobj;
4741
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getData'.\n Possible C/C++ prototypes are:\n getData(int,int)\n getData(char const *,char const *)\n");
4734
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getData'");
4816
4809
if (!SWIG_IsOK(res2)) {
4817
4810
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataAsDbl" "', argument " "2"" of type '" "char const *""'");
4819
arg2 = reinterpret_cast< char * >(buf2);
4820
4813
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4821
4814
if (!SWIG_IsOK(res3)) {
4822
4815
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getDataAsDbl" "', argument " "3"" of type '" "char const *""'");
4824
arg3 = reinterpret_cast< char * >(buf3);
4827
4820
InErrorFlag = 0;
4892
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getDataAsDbl'.\n Possible C/C++ prototypes are:\n getDataAsDbl(int,int)\n getDataAsDbl(char const *,char const *)\n");
4885
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getDataAsDbl'");
5038
5031
if (!SWIG_IsOK(res2)) {
5039
5032
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
5041
arg2 = reinterpret_cast< char * >(buf2);
5042
5035
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5043
5036
if (!SWIG_IsOK(res3)) {
5044
5037
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
5046
arg3 = reinterpret_cast< char * >(buf3);
5047
5040
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
5048
5041
if (!SWIG_IsOK(res4)) {
5049
5042
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'");
5051
arg4 = reinterpret_cast< char * >(buf4);
5054
5047
InErrorFlag = 0;
5100
5093
if (!SWIG_IsOK(res2)) {
5101
5094
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
5103
arg2 = reinterpret_cast< char * >(buf2);
5104
5097
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5105
5098
if (!SWIG_IsOK(res3)) {
5106
5099
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
5108
arg3 = reinterpret_cast< char * >(buf3);
5109
5102
ecode4 = SWIG_AsVal_double(obj3, &val4);
5110
5103
if (!SWIG_IsOK(ecode4)) {
5111
5104
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IT8_setData" "', argument " "4"" of type '" "double""'");
5239
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setData'.\n Possible C/C++ prototypes are:\n setData(int,int,char const *)\n setData(int,int,double)\n setData(char const *,char const *,char const *)\n setData(char const *,char const *,double)\n");
5232
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setData'");
5318
5311
result = (char *)IT8_getPatchName(arg1,arg2);
5319
5312
if (InErrorFlag) SWIG_fail;
5321
resultobj = SWIG_FromCharPtr((const char *)result);
5314
resultobj = SWIG_FromCharPtr(result);
5322
5315
return resultobj;
5451
5444
if (!SWIG_IsOK(res2)) {
5452
5445
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
5454
arg2 = reinterpret_cast< char * >(buf2);
5455
5448
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5456
5449
if (!SWIG_IsOK(res3)) {
5457
5450
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
5459
arg3 = reinterpret_cast< char * >(buf3);
5460
5453
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
5461
5454
if (!SWIG_IsOK(res4)) {
5462
5455
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setTableByLabel" "', argument " "4"" of type '" "char const *""'");
5464
arg4 = reinterpret_cast< char * >(buf4);
5467
5460
InErrorFlag = 0;
5509
5502
if (!SWIG_IsOK(res2)) {
5510
5503
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
5512
arg2 = reinterpret_cast< char * >(buf2);
5513
5506
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5514
5507
if (!SWIG_IsOK(res3)) {
5515
5508
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
5517
arg3 = reinterpret_cast< char * >(buf3);
5520
5513
InErrorFlag = 0;
5637
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setTableByLabel'.\n Possible C/C++ prototypes are:\n setTableByLabel(char const *,char const *,char const *)\n setTableByLabel(char const *,char const *)\n setTableByLabel(char const *)\n");
5630
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setTableByLabel'");
8158
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_VEC3'.\n Possible C/C++ prototypes are:\n VEC3(double,double,double)\n VEC3(double,double)\n VEC3(double)\n VEC3()\n");
8151
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_VEC3'");
8763
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIEXYZ'.\n Possible C/C++ prototypes are:\n cmsCIEXYZ(double,double,double)\n cmsCIEXYZ(double,double)\n cmsCIEXYZ(double)\n cmsCIEXYZ()\n");
8756
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIEXYZ'");
9177
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIExyY'.\n Possible C/C++ prototypes are:\n cmsCIExyY(double,double,double)\n cmsCIExyY(double,double)\n cmsCIExyY(double)\n cmsCIExyY()\n");
9170
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIExyY'");
9591
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELab'.\n Possible C/C++ prototypes are:\n cmsCIELab(double,double,double)\n cmsCIELab(double,double)\n cmsCIELab(double)\n cmsCIELab()\n");
9584
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELab'");
10041
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELCh'.\n Possible C/C++ prototypes are:\n cmsCIELCh(double,double,double)\n cmsCIELCh(double,double)\n cmsCIELCh(double)\n cmsCIELCh()\n");
10034
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELCh'");
10455
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsJCh'.\n Possible C/C++ prototypes are:\n cmsJCh(double,double,double)\n cmsJCh(double,double)\n cmsJCh(double)\n cmsJCh()\n");
10448
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsJCh'");
11103
11096
if (!SWIG_IsOK(res1)) {
11104
11097
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsOpenProfileFromFile" "', argument " "1"" of type '" "char const *""'");
11106
arg1 = reinterpret_cast< char * >(buf1);
11107
11100
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
11108
11101
if (!SWIG_IsOK(res2)) {
11109
11102
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsOpenProfileFromFile" "', argument " "2"" of type '" "char const *""'");
11111
arg2 = reinterpret_cast< char * >(buf2);
11114
11107
InErrorFlag = 0;
13974
13967
if (!SWIG_IsOK(res3)) {
13975
13968
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCTextEx" "', argument " "3"" of type '" "char *""'");
13977
arg3 = reinterpret_cast< char * >(buf3);
13978
13971
ecode4 = SWIG_AsVal_size_t(obj3, &val4);
13979
13972
if (!SWIG_IsOK(ecode4)) {
13980
13973
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsReadICCTextEx" "', argument " "4"" of type '" "size_t""'");
14312
14305
if (!SWIG_IsOK(res2)) {
14313
14306
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Manufacturer_set" "', argument " "2"" of type '" "char [512]""'");
14315
arg2 = reinterpret_cast< char * >(temp2);
14316
14309
if (arg2) memcpy(arg1->Manufacturer,arg2,512*sizeof(char));
14317
14310
else memset(arg1->Manufacturer,0,512*sizeof(char));
14318
14311
resultobj = SWIG_Py_Void();
14371
14364
if (!SWIG_IsOK(res2)) {
14372
14365
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Model_set" "', argument " "2"" of type '" "char [512]""'");
14374
arg2 = reinterpret_cast< char * >(temp2);
14375
14368
if (arg2) memcpy(arg1->Model,arg2,512*sizeof(char));
14376
14369
else memset(arg1->Model,0,512*sizeof(char));
14377
14370
resultobj = SWIG_Py_Void();
14888
14881
if (!SWIG_IsOK(res2)) {
14889
14882
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGAMUTEX_Description_set" "', argument " "2"" of type '" "char [512]""'");
14891
arg2 = reinterpret_cast< char * >(temp2);
14892
14885
if (arg2) memcpy(arg1->Description,arg2,512*sizeof(char));
14893
14886
else memset(arg1->Description,0,512*sizeof(char));
14894
14887
resultobj = SWIG_Py_Void();
16339
16332
if (!SWIG_IsOK(res2)) {
16340
16333
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_Name_set" "', argument " "2"" of type '" "char [(256)]""'");
16342
arg2 = reinterpret_cast< char * >(temp2);
16343
16336
if (arg2) memcpy(arg1->Name,arg2,(256)*sizeof(char));
16344
16337
else memset(arg1->Name,0,(256)*sizeof(char));
16345
16338
resultobj = SWIG_Py_Void();
16727
16720
if (!SWIG_IsOK(res2)) {
16728
16721
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Prefix_set" "', argument " "2"" of type '" "char [33]""'");
16730
arg2 = reinterpret_cast< char * >(temp2);
16731
16724
if (arg2) memcpy(arg1->Prefix,arg2,33*sizeof(char));
16732
16725
else memset(arg1->Prefix,0,33*sizeof(char));
16733
16726
resultobj = SWIG_Py_Void();
16786
16779
if (!SWIG_IsOK(res2)) {
16787
16780
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Suffix_set" "', argument " "2"" of type '" "char [33]""'");
16789
arg2 = reinterpret_cast< char * >(temp2);
16790
16783
if (arg2) memcpy(arg1->Suffix,arg2,33*sizeof(char));
16791
16784
else memset(arg1->Suffix,0,33*sizeof(char));
16792
16785
resultobj = SWIG_Py_Void();
17000
16993
if (!SWIG_IsOK(res3)) {
17001
16994
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsNamedColorInfo" "', argument " "3"" of type '" "char *""'");
17003
arg3 = reinterpret_cast< char * >(buf3);
17004
16997
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
17005
16998
if (!SWIG_IsOK(res4)) {
17006
16999
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsNamedColorInfo" "', argument " "4"" of type '" "char *""'");
17008
arg4 = reinterpret_cast< char * >(buf4);
17009
17002
res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
17010
17003
if (!SWIG_IsOK(res5)) {
17011
17004
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsNamedColorInfo" "', argument " "5"" of type '" "char *""'");
17013
arg5 = reinterpret_cast< char * >(buf5);
17016
17009
InErrorFlag = 0;
18451
18444
if (!SWIG_IsOK(res2)) {
18452
18445
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyStr" "', argument " "2"" of type '" "char const *""'");
18454
arg2 = reinterpret_cast< char * >(buf2);
18455
18448
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18456
18449
if (!SWIG_IsOK(res3)) {
18457
18450
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyStr" "', argument " "3"" of type '" "char const *""'");
18459
arg3 = reinterpret_cast< char * >(buf3);
18462
18455
InErrorFlag = 0;
18499
18492
if (!SWIG_IsOK(res2)) {
18500
18493
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyDbl" "', argument " "2"" of type '" "char const *""'");
18502
arg2 = reinterpret_cast< char * >(buf2);
18503
18496
ecode3 = SWIG_AsVal_double(obj2, &val3);
18504
18497
if (!SWIG_IsOK(ecode3)) {
18505
18498
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyDbl" "', argument " "3"" of type '" "double""'");
18545
18538
if (!SWIG_IsOK(res2)) {
18546
18539
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyHex" "', argument " "2"" of type '" "char const *""'");
18548
arg2 = reinterpret_cast< char * >(buf2);
18549
18542
ecode3 = SWIG_AsVal_int(obj2, &val3);
18550
18543
if (!SWIG_IsOK(ecode3)) {
18551
18544
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyHex" "', argument " "3"" of type '" "int""'");
18592
18585
if (!SWIG_IsOK(res2)) {
18593
18586
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
18595
arg2 = reinterpret_cast< char * >(buf2);
18596
18589
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18597
18590
if (!SWIG_IsOK(res3)) {
18598
18591
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
18600
arg3 = reinterpret_cast< char * >(buf3);
18603
18596
InErrorFlag = 0;
18636
18629
if (!SWIG_IsOK(res2)) {
18637
18630
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetProperty" "', argument " "2"" of type '" "char const *""'");
18639
arg2 = reinterpret_cast< char * >(buf2);
18642
18635
InErrorFlag = 0;
18643
18636
result = (char *)cmsIT8GetProperty(arg1,(char const *)arg2);
18644
18637
if (InErrorFlag) SWIG_fail;
18646
resultobj = SWIG_FromCharPtr((const char *)result);
18639
resultobj = SWIG_FromCharPtr(result);
18647
18640
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
18648
18641
return resultobj;
18759
18752
result = (char *)cmsIT8GetDataRowCol(arg1,arg2,arg3);
18760
18753
if (InErrorFlag) SWIG_fail;
18762
resultobj = SWIG_FromCharPtr((const char *)result);
18755
resultobj = SWIG_FromCharPtr(result);
18763
18756
return resultobj;
18942
18935
if (!SWIG_IsOK(res2)) {
18943
18936
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetData" "', argument " "2"" of type '" "char const *""'");
18945
arg2 = reinterpret_cast< char * >(buf2);
18946
18939
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18947
18940
if (!SWIG_IsOK(res3)) {
18948
18941
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetData" "', argument " "3"" of type '" "char const *""'");
18950
arg3 = reinterpret_cast< char * >(buf3);
18953
18946
InErrorFlag = 0;
18954
18947
result = (char *)cmsIT8GetData(arg1,(char const *)arg2,(char const *)arg3);
18955
18948
if (InErrorFlag) SWIG_fail;
18957
resultobj = SWIG_FromCharPtr((const char *)result);
18950
resultobj = SWIG_FromCharPtr(result);
18958
18951
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
18959
18952
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
18960
18953
return resultobj;
18991
18984
if (!SWIG_IsOK(res2)) {
18992
18985
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataDbl" "', argument " "2"" of type '" "char const *""'");
18994
arg2 = reinterpret_cast< char * >(buf2);
18995
18988
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18996
18989
if (!SWIG_IsOK(res3)) {
18997
18990
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetDataDbl" "', argument " "3"" of type '" "char const *""'");
18999
arg3 = reinterpret_cast< char * >(buf3);
19002
18995
InErrorFlag = 0;
19045
19038
if (!SWIG_IsOK(res2)) {
19046
19039
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetData" "', argument " "2"" of type '" "char const *""'");
19048
arg2 = reinterpret_cast< char * >(buf2);
19049
19042
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19050
19043
if (!SWIG_IsOK(res3)) {
19051
19044
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetData" "', argument " "3"" of type '" "char const *""'");
19053
arg3 = reinterpret_cast< char * >(buf3);
19054
19047
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
19055
19048
if (!SWIG_IsOK(res4)) {
19056
19049
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetData" "', argument " "4"" of type '" "char const *""'");
19058
arg4 = reinterpret_cast< char * >(buf4);
19061
19054
InErrorFlag = 0;
19105
19098
if (!SWIG_IsOK(res2)) {
19106
19099
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetDataDbl" "', argument " "2"" of type '" "char const *""'");
19108
arg2 = reinterpret_cast< char * >(buf2);
19109
19102
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19110
19103
if (!SWIG_IsOK(res3)) {
19111
19104
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataDbl" "', argument " "3"" of type '" "char const *""'");
19113
arg3 = reinterpret_cast< char * >(buf3);
19114
19107
ecode4 = SWIG_AsVal_double(obj3, &val4);
19115
19108
if (!SWIG_IsOK(ecode4)) {
19116
19109
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsIT8SetDataDbl" "', argument " "4"" of type '" "double""'");
19280
19273
if (!SWIG_IsOK(res3)) {
19281
19274
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetPatchName" "', argument " "3"" of type '" "char *""'");
19283
arg3 = reinterpret_cast< char * >(buf3);
19286
19279
InErrorFlag = 0;
19287
19280
result = (char *)cmsIT8GetPatchName(arg1,arg2,arg3);
19288
19281
if (InErrorFlag) SWIG_fail;
19290
resultobj = SWIG_FromCharPtr((const char *)result);
19283
resultobj = SWIG_FromCharPtr(result);
19291
19284
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
19292
19285
return resultobj;
19327
19320
if (!SWIG_IsOK(res2)) {
19328
19321
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetTableByLabel" "', argument " "2"" of type '" "char const *""'");
19330
arg2 = reinterpret_cast< char * >(buf2);
19331
19324
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19332
19325
if (!SWIG_IsOK(res3)) {
19333
19326
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetTableByLabel" "', argument " "3"" of type '" "char const *""'");
19335
arg3 = reinterpret_cast< char * >(buf3);
19336
19329
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
19337
19330
if (!SWIG_IsOK(res4)) {
19338
19331
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetTableByLabel" "', argument " "4"" of type '" "char const *""'");
19340
arg4 = reinterpret_cast< char * >(buf4);
19343
19336
InErrorFlag = 0;
20168
20161
if (!SWIG_IsOK(res2)) {
20169
20162
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSignalError" "', argument " "2"" of type '" "char const *""'");
20171
arg2 = reinterpret_cast< char * >(buf2);
20172
20165
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
20173
20166
if (!SWIG_IsOK(res3)) {
20174
20167
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSignalError" "', argument " "3"" of type '" "char *""'");
20176
arg3 = reinterpret_cast< char * >(buf3);
20179
20172
InErrorFlag = 0;
26818
26811
if (!SWIG_IsOK(res1)) {
26819
26812
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyWhitePoint" "', argument " "1"" of type '" "char *""'");
26821
arg1 = reinterpret_cast< char * >(buf1);
26822
26815
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 );
26823
26816
if (!SWIG_IsOK(res2)) {
26824
26817
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsIdentifyWhitePoint" "', argument " "2"" of type '" "LPcmsCIEXYZ""'");
27014
27007
if (!SWIG_IsOK(res2)) {
27015
27008
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAppendNamedColor" "', argument " "2"" of type '" "char const *""'");
27017
arg2 = reinterpret_cast< char * >(buf2);
27018
27011
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 );
27019
27012
if (!SWIG_IsOK(res3)) {
27020
27013
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAppendNamedColor" "', argument " "3"" of type '" "WORD [3]""'");
28107
28100
if (!SWIG_IsOK(res2)) {
28108
28101
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_PhysicalFile_set" "', argument " "2"" of type '" "char [(256)]""'");
28110
arg2 = reinterpret_cast< char * >(temp2);
28111
28104
if (arg2) memcpy(arg1->PhysicalFile,arg2,(256)*sizeof(char));
28112
28105
else memset(arg1->PhysicalFile,0,(256)*sizeof(char));
28113
28106
resultobj = SWIG_Py_Void();
33492
33485
* structures together.
33494
33487
* The generated swig_type_info structures are assigned staticly to an initial
33495
* array. We just loop through that array, and handle each type individually.
33488
* array. We just loop though that array, and handle each type individually.
33496
33489
* First we lookup if this type has been already loaded, and if so, use the
33497
33490
* loaded structure instead of the generated one. Then we have to fill in the
33498
33491
* cast linked list. The cast data is initially stored in something like a
33530
33523
#define SWIGRUNTIME_DEBUG
33534
33526
SWIGRUNTIME void
33535
33527
SWIG_InitializeModule(void *clientdata) {
33537
swig_module_info *module_head, *iter;
33529
swig_module_info *module_head;
33530
static int init_run = 0;
33540
33532
clientdata = clientdata;
33542
/* check to see if the circular list has been setup, if not, set it up */
33543
if (swig_module.next==0) {
33544
/* Initialize the swig_module */
33545
swig_module.type_initial = swig_type_initial;
33546
swig_module.cast_initial = swig_cast_initial;
33547
swig_module.next = &swig_module;
33534
if (init_run) return;
33537
/* Initialize the swig_module */
33538
swig_module.type_initial = swig_type_initial;
33539
swig_module.cast_initial = swig_cast_initial;
33550
33541
/* Try and load any already created modules */
33551
33542
module_head = SWIG_GetModule(clientdata);
33552
if (!module_head) {
33553
/* This is the first module loaded for this interpreter */
33554
/* so set the swig module into the interpreter */
33555
SWIG_SetModule(clientdata, &swig_module);
33556
module_head = &swig_module;
33558
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
33562
if (iter==&swig_module) {
33567
} while (iter!= module_head);
33569
/* if the is found in the list, then all is done and we may leave */
33571
/* otherwise we must add out module into the list */
33572
33544
swig_module.next = module_head->next;
33573
33545
module_head->next = &swig_module;
33547
/* This is the first module loaded */
33548
swig_module.next = &swig_module;
33549
SWIG_SetModule(clientdata, &swig_module);
33576
33552
/* Now work on filling in swig_module.types */
33928
33904
swig_type_info **types_initial) {
33930
33906
for (i = 0; methods[i].ml_name; ++i) {
33931
const char *c = methods[i].ml_doc;
33907
char *c = methods[i].ml_doc;
33932
33908
if (c && (c = strstr(c, "swig_ptr: "))) {
33934
33910
swig_const_info *ci = 0;
33935
const char *name = c + 10;
33911
char *name = c + 10;
33936
33912
for (j = 0; const_table[j].type; ++j) {
33937
33913
if (strncmp(const_table[j].name, name,
33938
33914
strlen(const_table[j].name)) == 0) {