~ubuntu-branches/ubuntu/utopic/sblim-sfcc/utopic-proposed

« back to all changes in this revision

Viewing changes to backend/cimxml/cimXmlParser.c

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2012-11-15 11:49:36 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20121115114936-53syr7flsjo21gw3
Tags: 2.2.4-0ubuntu1
* New upstream release.
* Add debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "dmalloc.h"
33
33
#endif
34
34
 
 
35
#include <pthread.h>
 
36
 
35
37
#ifdef LARGE_VOL_SUPPORT
36
38
 
37
39
// New begin
38
40
#include <curl/curl.h>         // new
39
 
#include <pthread.h>           // new
40
41
#include <time.h>              // new
41
42
#include <sys/time.h>          // new
42
43
#include <setjmp.h>            // new
280
281
   strcat(ptr," ");
281
282
   strcat(ptr, tag);
282
283
   Throw(xb, ptr);
283
 
   return -1;
 
284
   return 0;
284
285
}
285
286
 
286
287
/* Is this Broken?  I guess we don't allow escaping the quotes */
504
505
         {NULL}
505
506
      };
506
507
      XmlAttr attr[0];
507
 
      memset(attr, 0, sizeof(attr));
 
508
      //      memset(attr, 0, sizeof(attr));
508
509
      if (attrsOk(parm->xmb, elm, attr, "IRETURNVALUE", ZTOK_IRETVALUE)) {
509
510
         return XTOK_IRETVALUE;
510
511
      }
1363
1364
}
1364
1365
#endif
1365
1366
 
 
1367
static pthread_mutex_t scan_mutex = PTHREAD_MUTEX_INITIALIZER;
 
1368
 
1366
1369
ResponseHdr scanCimXmlResponse(const char *xmlData, CMPIObjectPath *cop)
1367
1370
{
 
1371
 
 
1372
   pthread_mutex_lock(&scan_mutex);
1368
1373
   ParserControl control;
1369
1374
#if DEBUG
1370
1375
   extern int do_debug;
1381
1386
 
1382
1387
   control.respHdr.rvArray=newCMPIArray(0,0,NULL);
1383
1388
 
1384
 
   if(cop) {
1385
 
       control.da_nameSpace=(char*)getNameSpaceChars(cop);
1386
 
   }
 
1389
   control.requestObjectPath = cop;
1387
1390
 
1388
1391
   control.heap = parser_heap_init();
1389
1392
 
1393
1396
 
1394
1397
   releaseXmlBuffer(xmb);
1395
1398
 
 
1399
   pthread_mutex_unlock(&scan_mutex);
 
1400
 
1396
1401
   return control.respHdr;
1397
1402
}
1398
1403
 
1524
1529
   
1525
1530
   local_enmp->data = control.respHdr.rvArray ;
1526
1531
   
1527
 
   if(cop) {
1528
 
       control.da_nameSpace=(char*)getNameSpaceChars(cop);
1529
 
   }
 
1532
   control.requestObjectPath = cop;
1530
1533
 
1531
1534
   control.heap = parser_heap_init();
1532
1535