/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/py.c

  • Committer: Vasilii Chernov
  • Date: 2016-02-11 11:28:37 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160211112837-vg7wezhh0cs51hvq
Solve errors in serialing register_info function. Clear unused code

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
}
270
270
 
271
271
int pcilib_init_py_script(pcilib_t *ctx, char* module_name, pcilib_script_t **module, pcilib_access_mode_t *mode)
272
 
{
273
 
        int err;
274
 
        
 
272
{       
275
273
        //Initialize python script, if it has not initialized already.
276
274
        if(!module_name)
277
275
        {
389
387
                        module->py_script_module = NULL;
390
388
                }
391
389
        }
 
390
        
 
391
        return 0;
392
392
}
393
393
 
394
394
int pcilib_script_read(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val)
415
415
}
416
416
 
417
417
int pcilib_script_write(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val)
418
 
{
419
 
        int err;
420
 
                
 
418
{       
421
419
    PyObject *input = pcilib_convert_val_to_pyobject(ctx, val);
422
420
        if(!input)
423
421
        {