Changeset 335


Ignore:
Timestamp:
03/10/15 11:46:37 (9 years ago)
Author:
bas
Message:

finally version of pbs_python to 5.X, still no working rm interface

Location:
devel/5.X
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • devel/5.X/log.h

    r327 r335  
    151151typedef enum getter_setter SGetter;
    152152
    153 // HvB extern int LOGLEVEL;
     153// extern int LOGLEVEL;
    154154
    155155extern long *log_event_mask;
  • devel/5.X/pbs.i

    r331 r335  
    2323#include "log.h"
    2424
    25 #define SARA_DEBUG 1
    26 
    27 //extern int pbs_errno;
     25#define SARA_DEBUG 0
    2826
    2927%}
     
    4442  int                   i=0, size=0;
    4543
    46   // printf("Python --> C\n");
    47 
    48   if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n");
     44  if (SARA_DEBUG) printf("Convert python -> c (struct batch_status *):\n");
    4945
    5046  size = Get_List_Size($input);
     
    104100  // printf("Python --> C\n");
    105101
    106   if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     102  if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    107103
    108104  size = Get_List_Size($input);
     
    125121      return NULL;
    126122
    127       // This will skipp the wrong entry
     123      // This will skip the wrong entry
    128124      // continue;
    129125    }
     
    145141
    146142  } // end for
     143
    147144  if (SARA_DEBUG) printf("\t</Contents>\n");
    148145} // end struct attrl *IN typemap
     
    159156  // printf("Python --> C\n");
    160157
    161   if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
     158  if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n");
    162159
    163160  size = Get_List_Size($input);
     
    244241
    245242  PyObject              *obj_batch;
    246   struct batch_status   *ptr;
     243  struct batch_status   *ptr, *org;
    247244  int                   i=0, len=0;
    248245
    249   // printf("Ja we are in bussniss\n");
    250   if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     246  if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    251247 
    252248  // Deterime length of list
    253249  //
    254   ptr = $1;
     250  org = $1;
     251  ptr = org;
    255252  while (ptr != NULL) {
    256253    len++;
     
    274271  }
    275272
    276   free(ptr);
    277273  if (SARA_DEBUG) printf("\t</Contents>\n");
    278274} // end typemap struct batch_status *
     
    283279  int           i=0, len=0;
    284280
    285   if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
     281  if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n");
    286282
    287283  ptr = $1;
     
    302298    ptr = ptr->next;
    303299  }
    304 
    305   free(ptr);
    306300  if (SARA_DEBUG) printf("\t</Contents>\n");
    307301} // end typemap struct attrl *
     
    312306  int               i=0, len=0;
    313307
    314   if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
     308  if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n");
    315309 
    316310  ptr = $1;
     
    330324  }
    331325
    332   free(ptr);
    333326  if (SARA_DEBUG) printf("\t</Contents>\n");
    334327} // end typemap struct attropl *
     
    340333
    341334   if (SARA_DEBUG)
    342      printf("Converteren char ** -> python list\n");
     335     printf("Convert char ** -> python list\n");
    343336
    344337
     
    513506//
    514507%nodefault;
    515 // %include "pbs_python.h"
     508
     509
    516510%include "pbs_ifl.h"
    517511%include "rm.h"
    518512%include "log.h"
    519513%include "pbs_error.h"
    520 
    521 
    522 // Iets van uhhh..... obsolete
    523 // %ignore pbs_errno;
    524 //%include <pbs_error.h>
    525 
    526 
    527 /*
    528 %feature("shadow") attrl::__str__ {
    529   def __str__(self): print self.name + self.value;
    530 }
    531 %extend attrl {
    532   void __str__();
    533 }
    534 */
    535514
    536515/* not used
     
    561540       printf("Bas free attrl\n");
    562541
    563     /*
    564         free(self);
    565     */
     542    // free(self);
    566543  }
    567544}
     
    584561       printf("Bas free attropl\n");
    585562
    586     /*
    587         free(self);
    588     */
     563    // free(self);
    589564  }
    590565}
  • devel/5.X/pbs.py

    r332 r335  
    941941  """
    942942  err = 0
    943   print default_mom_res
    944943  for res in default_mom_res:
    945     print res
    946     #addreq(id, res)
    947     addreq_err(id, err, res)
    948     print err
    949     #resp = getreq(id)
    950     resp = getreq_err(err, id)
    951     print "error: ", err
    952 
    953     print resp,id
     944    addreq(id, res)
     945    resp = getreq(id)
    954946    check_resp(d, resp)
    955947
  • devel/5.X/pbs_node_info

    r331 r335  
    2828#      mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
    2929
    30     err = 0
    31     #mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
    32     mom_id = pbs.openrm("localhost", 15003)
    33     print mom_id
     30    mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
    3431    e, e_txt = pbs.error()
    3532    print "openrm", e, e_txt
     
    4138
    4239    #pbs.addreq_err(mom_id, err, "arch")
    43     pbs.addreq(mom_id, "larch")
     40    pbs.addreq(mom_id, "arch")
    4441    e, e_txt = pbs.error()
    4542    print "addreq:", e, e_txt
     
    5350    e, e_txt = pbs.error()
    5451    print e, e_txt
    55     print err, resp
    5652
    57     sys.exit(1)
    5853    print 'rm interface'
    5954
  • devel/5.X/pbs_wrap.c

    r331 r335  
    29792979#include "log.h"
    29802980
    2981 #define SARA_DEBUG 1
    2982 
    2983 //extern int pbs_errno;
     2981#define SARA_DEBUG 0
    29842982
    29852983
     
    34583456       printf("Bas free attrl\n");
    34593457
    3460     /*
    3461         free(self);
    3462     */
     3458    // free(self);
    34633459  }
    34643460SWIGINTERN char *attropl___str__(struct attropl *self){
     
    34733469       printf("Bas free attropl\n");
    34743470
    3475     /*
    3476         free(self);
    3477     */
     3471    // free(self);
    34783472  }
    34793473
     
    35473541    int           i=0, len=0;
    35483542   
    3549     if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
     3543    if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n");
    35503544   
    35513545    ptr = result;
     
    35663560      ptr = ptr->next;
    35673561    }
    3568    
    3569     free(ptr);
    35703562    if (SARA_DEBUG) printf("\t</Contents>\n");
    35713563  }
     
    35963588    int               i=0, len=0;
    35973589   
    3598     if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
     3590    if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n");
    35993591   
    36003592    ptr = result;
     
    36143606    }
    36153607   
    3616     free(ptr);
    36173608    if (SARA_DEBUG) printf("\t</Contents>\n");
    36183609  }
     
    36313622  {
    36323623    PyObject              *obj_batch;
    3633     struct batch_status   *ptr;
     3624    struct batch_status   *ptr, *org;
    36343625    int                   i=0, len=0;
    36353626   
    3636     // printf("Ja we are in bussniss\n");
    3637     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     3627    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    36383628   
    36393629    // Deterime length of list
    36403630    //
    3641     ptr = result;
     3631    org = result;
     3632    ptr = org;
    36423633    while (ptr != NULL) {
    36433634      len++;
     
    36613652    }
    36623653   
    3663     free(ptr);
    36643654    if (SARA_DEBUG) printf("\t</Contents>\n");
    36653655  }
     
    38223812    int           i=0, len=0;
    38233813   
    3824     if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
     3814    if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n");
    38253815   
    38263816    ptr = result;
     
    38413831      ptr = ptr->next;
    38423832    }
    3843    
    3844     free(ptr);
    38453833    if (SARA_DEBUG) printf("\t</Contents>\n");
    38463834  }
     
    39303918    int           i=0, len=0;
    39313919   
    3932     if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
     3920    if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n");
    39333921   
    39343922    ptr = result;
     
    39493937      ptr = ptr->next;
    39503938    }
    3951    
    3952     free(ptr);
    39533939    if (SARA_DEBUG) printf("\t</Contents>\n");
    39543940  }
     
    42944280    int               i=0, len=0;
    42954281   
    4296     if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n");
     4282    if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n");
    42974283   
    42984284    ptr = result;
     
    43124298    }
    43134299   
    4314     free(ptr);
    43154300    if (SARA_DEBUG) printf("\t</Contents>\n");
    43164301  }
     
    46534638  {
    46544639    PyObject              *obj_batch;
    4655     struct batch_status   *ptr;
     4640    struct batch_status   *ptr, *org;
    46564641    int                   i=0, len=0;
    46574642   
    4658     // printf("Ja we are in bussniss\n");
    4659     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     4643    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    46604644   
    46614645    // Deterime length of list
    46624646    //
    4663     ptr = result;
     4647    org = result;
     4648    ptr = org;
    46644649    while (ptr != NULL) {
    46654650      len++;
     
    46834668    }
    46844669   
    4685     free(ptr);
    46864670    if (SARA_DEBUG) printf("\t</Contents>\n");
    46874671  }
     
    48034787    int           i=0, len=0;
    48044788   
    4805     if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n");
     4789    if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n");
    48064790   
    48074791    ptr = result;
     
    48224806      ptr = ptr->next;
    48234807    }
    4824    
    4825     free(ptr);
    48264808    if (SARA_DEBUG) printf("\t</Contents>\n");
    48274809  }
     
    50595041    // printf("Python --> C\n");
    50605042   
    5061     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     5043    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    50625044   
    50635045    size = Get_List_Size(obj2);
     
    50795061        return NULL;
    50805062       
    5081         // This will skipp the wrong entry
     5063        // This will skip the wrong entry
    50825064        // continue;
    50835065      }
     
    50995081     
    51005082    } // end for
     5083   
    51015084    if (SARA_DEBUG) printf("\t</Contents>\n");
    51025085  }
     
    51575140    // printf("Python --> C\n");
    51585141   
    5159     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     5142    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    51605143   
    51615144    size = Get_List_Size(obj2);
     
    51775160        return NULL;
    51785161       
    5179         // This will skipp the wrong entry
     5162        // This will skip the wrong entry
    51805163        // continue;
    51815164      }
     
    51975180     
    51985181    } // end for
     5182   
    51995183    if (SARA_DEBUG) printf("\t</Contents>\n");
    52005184  }
     
    55905574    // printf("Python --> C\n");
    55915575   
    5592     if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
     5576    if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n");
    55935577   
    55945578    size = Get_List_Size(obj4);
     
    62006184   
    62016185    if (SARA_DEBUG)
    6202     printf("Converteren char ** -> python list\n");
     6186    printf("Convert char ** -> python list\n");
    62036187   
    62046188   
     
    63616345    int                   i=0, size=0;
    63626346   
    6363     // printf("Python --> C\n");
    6364    
    6365     if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n");
     6347    if (SARA_DEBUG) printf("Convert python -> c (struct batch_status *):\n");
    63666348   
    63676349    size = Get_List_Size(obj0);
     
    64546436    // printf("Python --> C\n");
    64556437   
    6456     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     6438    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    64576439   
    64586440    size = Get_List_Size(obj2);
     
    64746456        return NULL;
    64756457       
    6476         // This will skipp the wrong entry
     6458        // This will skip the wrong entry
    64776459        // continue;
    64786460      }
     
    64946476     
    64956477    } // end for
     6478   
    64966479    if (SARA_DEBUG) printf("\t</Contents>\n");
    64976480  }
     
    65046487  {
    65056488    PyObject              *obj_batch;
    6506     struct batch_status   *ptr;
     6489    struct batch_status   *ptr, *org;
    65076490    int                   i=0, len=0;
    65086491   
    6509     // printf("Ja we are in bussniss\n");
    6510     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     6492    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    65116493   
    65126494    // Deterime length of list
    65136495    //
    6514     ptr = result;
     6496    org = result;
     6497    ptr = org;
    65156498    while (ptr != NULL) {
    65166499      len++;
     
    65346517    }
    65356518   
    6536     free(ptr);
    65376519    if (SARA_DEBUG) printf("\t</Contents>\n");
    65386520  }
     
    65836565  {
    65846566    PyObject              *obj_batch;
    6585     struct batch_status   *ptr;
     6567    struct batch_status   *ptr, *org;
    65866568    int                   i=0, len=0;
    65876569   
    6588     // printf("Ja we are in bussniss\n");
    6589     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     6570    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    65906571   
    65916572    // Deterime length of list
    65926573    //
    6593     ptr = result;
     6574    org = result;
     6575    ptr = org;
    65946576    while (ptr != NULL) {
    65956577      len++;
     
    66136595    }
    66146596   
    6615     free(ptr);
    66166597    if (SARA_DEBUG) printf("\t</Contents>\n");
    66176598  }
     
    66636644    // printf("Python --> C\n");
    66646645   
    6665     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     6646    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    66666647   
    66676648    size = Get_List_Size(obj2);
     
    66836664        return NULL;
    66846665       
    6685         // This will skipp the wrong entry
     6666        // This will skip the wrong entry
    66866667        // continue;
    66876668      }
     
    67036684     
    67046685    } // end for
     6686   
    67056687    if (SARA_DEBUG) printf("\t</Contents>\n");
    67066688  }
     
    67136695  {
    67146696    PyObject              *obj_batch;
    6715     struct batch_status   *ptr;
     6697    struct batch_status   *ptr, *org;
    67166698    int                   i=0, len=0;
    67176699   
    6718     // printf("Ja we are in bussniss\n");
    6719     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     6700    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    67206701   
    67216702    // Deterime length of list
    67226703    //
    6723     ptr = result;
     6704    org = result;
     6705    ptr = org;
    67246706    while (ptr != NULL) {
    67256707      len++;
     
    67436725    }
    67446726   
    6745     free(ptr);
    67466727    if (SARA_DEBUG) printf("\t</Contents>\n");
    67476728  }
     
    67856766    // printf("Python --> C\n");
    67866767   
    6787     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     6768    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    67886769   
    67896770    size = Get_List_Size(obj1);
     
    68056786        return NULL;
    68066787       
    6807         // This will skipp the wrong entry
     6788        // This will skip the wrong entry
    68086789        // continue;
    68096790      }
     
    68256806     
    68266807    } // end for
     6808   
    68276809    if (SARA_DEBUG) printf("\t</Contents>\n");
    68286810  }
     
    68356817  {
    68366818    PyObject              *obj_batch;
    6837     struct batch_status   *ptr;
     6819    struct batch_status   *ptr, *org;
    68386820    int                   i=0, len=0;
    68396821   
    6840     // printf("Ja we are in bussniss\n");
    6841     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     6822    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    68426823   
    68436824    // Deterime length of list
    68446825    //
    6845     ptr = result;
     6826    org = result;
     6827    ptr = org;
    68466828    while (ptr != NULL) {
    68476829      len++;
     
    68656847    }
    68666848   
    6867     free(ptr);
    68686849    if (SARA_DEBUG) printf("\t</Contents>\n");
    68696850  }
     
    69156896    // printf("Python --> C\n");
    69166897   
    6917     if (SARA_DEBUG) printf("Converteren python -> c (struct attrl *):\n");
     6898    if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n");
    69186899   
    69196900    size = Get_List_Size(obj2);
     
    69356916        return NULL;
    69366917       
    6937         // This will skipp the wrong entry
     6918        // This will skip the wrong entry
    69386919        // continue;
    69396920      }
     
    69556936     
    69566937    } // end for
     6938   
    69576939    if (SARA_DEBUG) printf("\t</Contents>\n");
    69586940  }
     
    69656947  {
    69666948    PyObject              *obj_batch;
    6967     struct batch_status   *ptr;
     6949    struct batch_status   *ptr, *org;
    69686950    int                   i=0, len=0;
    69696951   
    6970     // printf("Ja we are in bussniss\n");
    6971     if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n");
     6952    if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n");
    69726953   
    69736954    // Deterime length of list
    69746955    //
    6975     ptr = result;
     6956    org = result;
     6957    ptr = org;
    69766958    while (ptr != NULL) {
    69776959      len++;
     
    69956977    }
    69966978   
    6997     free(ptr);
    69986979    if (SARA_DEBUG) printf("\t</Contents>\n");
    69996980  }
     
    70477028    // printf("Python --> C\n");
    70487029   
    7049     if (SARA_DEBUG) printf("Converteren python -> c (struct attropl *):\n");
     7030    if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n");
    70507031   
    70517032    size = Get_List_Size(obj1);
     
    76537634  int val1 ;
    76547635  int ecode1 = 0 ;
    7655   int temp2 ;
     7636  void *argp2 = 0 ;
    76567637  int res2 = 0 ;
    76577638  int res3 ;
     
    76697650  }
    76707651  arg1 = (int)(val1);
    7671   if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
    7672     int val;
    7673     int ecode = SWIG_AsVal_int(obj1, &val);
    7674     if (!SWIG_IsOK(ecode)) {
    7675       SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "addreq_err" "', argument " "2"" of type '" "int""'");
    7676     }
    7677     temp2 = (int)(val);
    7678     arg2 = &temp2;
    7679     res2 = SWIG_AddTmpMask(ecode);
    7680   }
     7652  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 |  0 );
     7653  if (!SWIG_IsOK(res2)) {
     7654    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "addreq_err" "', argument " "2"" of type '" "int *""'");
     7655  }
     7656  arg2 = (int *)(argp2);
    76817657  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
    76827658  if (!SWIG_IsOK(res3)) {
     
    76867662  result = (int)addreq_err(arg1,arg2,arg3);
    76877663  resultobj = SWIG_From_int((int)(result));
    7688   if (SWIG_IsTmpObj(res2)) {
    7689     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
    7690   } else {
    7691     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    7692     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
    7693   }
    76947664  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
    76957665  return resultobj;
     
    78037773  int *arg1 = (int *) 0 ;
    78047774  int arg2 ;
    7805   int temp1 ;
     7775  void *argp1 = 0 ;
    78067776  int res1 = 0 ;
    78077777  int val2 ;
     
    78127782 
    78137783  if (!PyArg_ParseTuple(args,(char *)"OO:getreq_err",&obj0,&obj1)) SWIG_fail;
    7814   if (!(SWIG_IsOK((res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1),SWIGTYPE_p_int,0))))) {
    7815     int val;
    7816     int ecode = SWIG_AsVal_int(obj0, &val);
    7817     if (!SWIG_IsOK(ecode)) {
    7818       SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "getreq_err" "', argument " "1"" of type '" "int""'");
    7819     }
    7820     temp1 = (int)(val);
    7821     arg1 = &temp1;
    7822     res1 = SWIG_AddTmpMask(ecode);
    7823   }
     7784  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
     7785  if (!SWIG_IsOK(res1)) {
     7786    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getreq_err" "', argument " "1"" of type '" "int *""'");
     7787  }
     7788  arg1 = (int *)(argp1);
    78247789  ecode2 = SWIG_AsVal_int(obj1, &val2);
    78257790  if (!SWIG_IsOK(ecode2)) {
     
    78297794  result = (char *)getreq_err(arg1,arg2);
    78307795  resultobj = SWIG_FromCharPtr((const char *)result);
    7831   if (SWIG_IsTmpObj(res1)) {
    7832     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
    7833   } else {
    7834     int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    7835     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
    7836   }
    78377796  return resultobj;
    78387797fail:
  • devel/5.X/resmom.py

    r327 r335  
    8888  """
    8989  err = 0
    90   print default_mom_res
    9190  for res in default_mom_res:
    92     print res
    93     #addreq(id, res)
    94     addreq_err(id, err, res)
    95     print err
    96     #resp = getreq(id)
    97     resp = getreq_err(err, id)
    98     print "error: ", err
    99 
    100     print resp,id
     91    addreq(id, res)
     92    resp = getreq(id)
    10193    check_resp(d, resp)
    10294
  • devel/5.X/rm.h

    r331 r335  
    8282** to the resource monitor.
    8383*/
     84
    8485#ifdef __cplusplus
    8586extern "C"
     
    9192int downrm(int *, int);
    9293int configrm(int, int *, char *);
    93 int addreq_err(int, int *INOUT, char *);
     94int addreq_err(int, int *, char *);
    9495int begin_rm_req(int ,int *,int );
    9596int addreq(int, char *);
    9697int allreq(char *);
    97 char* getreq_err(int *INOUT, int);
     98char* getreq_err(int *, int);
    9899char* getreq(int);
    99100int flushreq(void);
     
    103104}
    104105#endif
     106
Note: See TracChangeset for help on using the changeset viewer.