/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/pci.c

  • Committer: Vasilii Chernov
  • Date: 2016-02-12 13:43:20 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160212134320-qj1oj1v4g6ixn9c8
1. Cmakelists - move copy xml folder command to root file
2. - Move set python paths code to python module init funtction
     - pci.c move python module init block code after checking model
       to get paths before it runs.
   - Fix set python path code to work with PYTHONPATH
   - Update pci run script to work with PYTHONPATH
   - Fix python finalize code
3. Change pcilib_script_s interacting method. Now it stores in hash.
4. Change names of some fucntions to more unified ones
5. Remove old unused function pcilib_xml_create_script_or_transform_view
6. cli - disable reading register after set if write_verification flag is off
7. Remove uninformative error messages fro Python wrap.
8. - Server.py - add read/write property/register command handling
   - Add help message
   - Correcting paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
            pcilib_close(ctx);
145
145
            return NULL;
146
146
        }
147
 
        
148
 
        err = pcilib_init_py(ctx);
149
 
        if (err) {
150
 
            pcilib_error("Error (%i) initializing python subsystem", err);
151
 
            pcilib_close(ctx);
152
 
            return NULL;
153
 
        }
154
147
 
155
148
        ctx->alloc_reg = PCILIB_DEFAULT_REGISTER_SPACE;
156
149
        ctx->alloc_views = PCILIB_DEFAULT_VIEW_SPACE;
191
184
 
192
185
        if (!ctx->model)
193
186
            ctx->model = strdup(model?model:"pci");
 
187
            
 
188
        err = pcilib_init_py(ctx);
 
189
        if (err) {
 
190
            pcilib_error("Error (%i) initializing python subsystem", err);
 
191
            pcilib_close(ctx);
 
192
            return NULL;
 
193
        }
194
194
        
195
195
        xmlerr = pcilib_init_xml(ctx, ctx->model);
196
196
        if ((xmlerr)&&(xmlerr != PCILIB_ERROR_NOTFOUND)) {