Commit dd4cba1c authored by lw's avatar lw

*** empty log message ***

parent e3d93f0b
...@@ -106,7 +106,7 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, char const* bname, co ...@@ -106,7 +106,7 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, char const* bname, co
m_adrep->ref(); m_adrep->ref();
if ( !m_orep->vrep()->merep()->getAttrInfoRec( &n, m_adrep->bix(), if ( !m_orep->vrep()->merep()->getAttrInfoRec( &n, m_adrep->bix(),
m_orep->cid(), (int *) &m_size, m_orep->cid(), &m_size,
&m_offset, &m_tid, &m_elements, &m_offset, &m_tid, &m_elements,
&m_type, &m_type,
&m_flags, 0)) { &m_flags, 0)) {
...@@ -165,7 +165,7 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) : ...@@ -165,7 +165,7 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) :
m_adrep->ref(); m_adrep->ref();
if (!m_orep->vrep()->merep()->getAttrInfoRec( &n, m_adrep->bix(), if (!m_orep->vrep()->merep()->getAttrInfoRec( &n, m_adrep->bix(),
cid, (int *) &m_size, cid, &m_size,
&m_offset, &m_tid, &m_elements, &m_offset, &m_tid, &m_elements,
&m_type, &m_type,
&m_flags, 0)) { &m_flags, 0)) {
...@@ -265,7 +265,7 @@ size_t wb_attribute::size() ...@@ -265,7 +265,7 @@ size_t wb_attribute::size()
return m_size; return m_size;
} }
int wb_attribute::offset() size_t wb_attribute::offset()
{ {
check(); check();
return m_offset; return m_offset;
......
...@@ -31,7 +31,7 @@ class wb_attribute : public wb_status ...@@ -31,7 +31,7 @@ class wb_attribute : public wb_status
wb_adrep *m_adrep; wb_adrep *m_adrep;
size_t m_size; size_t m_size;
int m_offset; size_t m_offset;
pwr_tTid m_tid; pwr_tTid m_tid;
int m_elements; int m_elements;
pwr_eType m_type; pwr_eType m_type;
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
pwr_sAttrRef aref(); pwr_sAttrRef aref();
pwr_sAttrRef *aref(pwr_sAttrRef *arp); pwr_sAttrRef *aref(pwr_sAttrRef *arp);
size_t size(); size_t size();
int offset(); size_t offset();
pwr_eType type(); pwr_eType type();
int nElement(); int nElement();
int index(); int index();
......
...@@ -295,7 +295,7 @@ bool wb_db::importVolume(wb_export *e) ...@@ -295,7 +295,7 @@ bool wb_db::importVolume(wb_export *e)
bool wb_db::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, bool wb_db::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid,
pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid,
pwr_tObjName name, pwr_tObjName normname, const char *name, const char *normname,
pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime, pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime,
size_t rbSize, size_t dbSize) size_t rbSize, size_t dbSize)
{ {
......
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
bool importVolume(wb_export *e); bool importVolume(wb_export *e);
bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid,
pwr_tOid loid, pwr_tObjName name, pwr_tObjName normname, pwr_tTime ohTime, pwr_tOid loid, const char *name, const char *normname, pwr_tTime ohTime,
pwr_tTime rbTime, pwr_tTime dbTime, size_t rbSize, size_t dbSize); pwr_tTime rbTime, pwr_tTime dbTime, size_t rbSize, size_t dbSize);
bool importRbody(pwr_tOid oid, size_t size, void *body); bool importRbody(pwr_tOid oid, size_t size, void *body);
...@@ -105,7 +105,7 @@ public: ...@@ -105,7 +105,7 @@ public:
wb_db_ohead(wb_db *db, wb_db_txn *txn, pwr_tOid oid); wb_db_ohead(wb_db *db, wb_db_txn *txn, pwr_tOid oid);
wb_db_ohead(wb_db *db, pwr_tOid oid, pwr_tCid cid, wb_db_ohead(wb_db *db, pwr_tOid oid, pwr_tCid cid,
pwr_tOid poid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid, pwr_tOid poid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid,
pwr_tObjName name, pwr_tObjName normname, const char *name, const char *normname,
pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime, pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime,
size_t rbSize, size_t dbSize); size_t rbSize, size_t dbSize);
......
...@@ -171,7 +171,7 @@ wb_dbs::checkObject(sOentry *oep) ...@@ -171,7 +171,7 @@ wb_dbs::checkObject(sOentry *oep)
bool bool
wb_dbs::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid aoid, pwr_tOid boid, pwr_tOid foid, wb_dbs::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid aoid, pwr_tOid boid, pwr_tOid foid,
pwr_tOid loid, pwr_tObjName name, pwr_tObjName normname, pwr_tTime time, pwr_tOid loid, const char *name, const char *normname, pwr_tTime time,
pwr_tTime rbTime, pwr_tTime dbTime, size_t rbSize, size_t dbSize) pwr_tTime rbTime, pwr_tTime dbTime, size_t rbSize, size_t dbSize)
{ {
sNentry *nep; sNentry *nep;
......
...@@ -112,11 +112,6 @@ public: ...@@ -112,11 +112,6 @@ public:
// ldhi_sObjHead *getAliasServer(sLCB *lcbp, ldhi_sObjHead *o, pwr_tOid *soid); // ldhi_sObjHead *getAliasServer(sLCB *lcbp, ldhi_sObjHead *o, pwr_tOid *soid);
// pwr_tStatus getMountServer(sLCB *lcbp, ldhi_sObjHead *o, pwr_tOid *soid); // pwr_tStatus getMountServer(sLCB *lcbp, ldhi_sObjHead *o, pwr_tOid *soid);
pwr_tStatus installObject(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid,
pwr_tOid loid, pwr_tObjName name, pwr_tObjName normname, pwr_tTime ohTime,
pwr_tTime rbTime, pwr_tTime dbTime, size_t rbSize, size_t dbSize);
pwr_tStatus installRbody(pwr_tOid oid, void *body);
pwr_tStatus installDbody(pwr_tOid oid, void *body);
void classInsert(sOentry *oep); void classInsert(sOentry *oep);
pwr_tStatus openFile(); pwr_tStatus openFile();
pwr_tStatus writeSectFile(); pwr_tStatus writeSectFile();
...@@ -135,7 +130,7 @@ public: ...@@ -135,7 +130,7 @@ public:
virtual bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, virtual bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid,
pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid,
pwr_tObjName name, pwr_tObjName normname, const char *name, const char *normname,
pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime, pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime,
size_t rbSize, size_t dbSize); size_t rbSize, size_t dbSize);
......
#ifndef wb_import_h #ifndef wb_import_h
#define wb_import_h #define wb_import_h
#include "pwr.h"
#include "co_dbs.h" #include "co_dbs.h"
class wb_export; class wb_export;
...@@ -13,7 +14,7 @@ public: ...@@ -13,7 +14,7 @@ public:
virtual bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, virtual bool importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid,
pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid, pwr_tOid boid, pwr_tOid aoid, pwr_tOid foid, pwr_tOid loid,
pwr_tObjName name, pwr_tObjName normname, const char *name, const char *normname,
pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime, pwr_tTime ohTime, pwr_tTime rbTime, pwr_tTime dbTime,
size_t rbSize, size_t dbSize) = 0; size_t rbSize, size_t dbSize) = 0;
......
...@@ -159,8 +159,8 @@ wb_tdrep *wb_merep::tdrep( pwr_tStatus *sts, wb_name name) ...@@ -159,8 +159,8 @@ wb_tdrep *wb_merep::tdrep( pwr_tStatus *sts, wb_name name)
return 0; return 0;
} }
int wb_merep::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, int *size, int wb_merep::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, size_t *offset, pwr_tTid *tid, int *elements,
pwr_eType *type, int *flags, int level) pwr_eType *type, int *flags, int level)
{ {
pwr_tStatus sts; pwr_tStatus sts;
......
...@@ -35,8 +35,8 @@ public: ...@@ -35,8 +35,8 @@ public:
wb_tdrep *tdrep( pwr_tStatus *sts, pwr_tTid tid); wb_tdrep *tdrep( pwr_tStatus *sts, pwr_tTid tid);
wb_tdrep *tdrep( pwr_tStatus *sts, wb_name name); wb_tdrep *tdrep( pwr_tStatus *sts, wb_name name);
int getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, int *size, int getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, size_t *offset, pwr_tTid *tid, int *elements,
pwr_eType *type, int *flags, int level); pwr_eType *type, int *flags, int level);
}; };
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#include "wb_orepwbl.h" #include "wb_orepwbl.h"
#include "wb_ldh_msg.h" #include "wb_ldh_msg.h"
#include "wb_dbs.h" #include "wb_dbs.h"
#include "wb_bdrep.h"
#include "wb_cdrep.h"
#include "wb_erep.h" #include "wb_erep.h"
#include "wb_merep.h" #include "wb_merep.h"
#include "wb_tdrep.h" #include "wb_tdrep.h"
...@@ -299,7 +301,7 @@ ref_wblnode wb_vrepwbl::findType( pwr_tTid tid) ...@@ -299,7 +301,7 @@ ref_wblnode wb_vrepwbl::findType( pwr_tTid tid)
} }
int wb_vrepwbl::getTypeInfo( const char *name, pwr_tTid *tid, pwr_eType *type, int *size, int wb_vrepwbl::getTypeInfo( const char *name, pwr_tTid *tid, pwr_eType *type, size_t *size,
int *elements) int *elements)
{ {
bool type_extern = false; bool type_extern = false;
...@@ -387,7 +389,7 @@ int wb_vrepwbl::getTypeInfo( const char *name, pwr_tTid *tid, pwr_eType *type, i ...@@ -387,7 +389,7 @@ int wb_vrepwbl::getTypeInfo( const char *name, pwr_tTid *tid, pwr_eType *type, i
return 1; return 1;
} }
int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, int *size, int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, size_t *size,
int *elements) int *elements)
{ {
switch ( tid) { switch ( tid) {
...@@ -529,7 +531,7 @@ int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, int *size, ...@@ -529,7 +531,7 @@ int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, int *size,
return 1; return 1;
} }
int wb_vrepwbl::getClassInfo( pwr_tCid cid, int *rsize, int *dsize) int wb_vrepwbl::getClassInfo( pwr_tCid cid, size_t *rsize, size_t *dsize)
{ {
// Search type in this volume // Search type in this volume
ref_wblnode n = findClass( cid); ref_wblnode n = findClass( cid);
...@@ -589,11 +591,11 @@ int wb_vrepwbl::getClassInfo( pwr_tCid cid, int *rsize, int *dsize) ...@@ -589,11 +591,11 @@ int wb_vrepwbl::getClassInfo( pwr_tCid cid, int *rsize, int *dsize)
*elements = elem; } *elements = elem; }
int wb_vrepwbl::getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, int *size, int wb_vrepwbl::getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, pwr_eType *type) size_t *offset, pwr_tTid *tid, int *elements, pwr_eType *type)
{ {
int a_size; size_t a_size;
int a_offset = 0; size_t a_offset = 0;
pwr_tTid a_tid; pwr_tTid a_tid;
int a_elements; int a_elements;
pwr_eType a_type; pwr_eType a_type;
...@@ -614,8 +616,8 @@ int wb_vrepwbl::getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, int * ...@@ -614,8 +616,8 @@ int wb_vrepwbl::getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, int *
return 0; return 0;
} }
int wb_vrepwbl::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, int *size, int wb_vrepwbl::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, pwr_eType *type, size_t *offset, pwr_tTid *tid, int *elements, pwr_eType *type,
int level) int level)
{ {
if ( level > 0) if ( level > 0)
...@@ -850,8 +852,8 @@ int wb_vrepwbl::nameToAttrRef( const char *name, pwr_sAttrRef *attrref) ...@@ -850,8 +852,8 @@ int wb_vrepwbl::nameToAttrRef( const char *name, pwr_sAttrRef *attrref)
{ {
pwr_tOid oid; pwr_tOid oid;
pwr_tStatus sts; pwr_tStatus sts;
int a_size; size_t a_size;
int a_offset; size_t a_offset;
pwr_tTid a_tid; pwr_tTid a_tid;
int a_elements; int a_elements;
pwr_eType a_type; pwr_eType a_type;
...@@ -930,7 +932,7 @@ int wb_vrepwbl::nameToAttrRef( const char *name, pwr_sAttrRef *attrref) ...@@ -930,7 +932,7 @@ int wb_vrepwbl::nameToAttrRef( const char *name, pwr_sAttrRef *attrref)
return LDH__SUCCESS; return LDH__SUCCESS;
} }
int wb_vrepwbl::getTemplateBody( pwr_tCid cid, pwr_eBix bix, int *size, void **body) int wb_vrepwbl::getTemplateBody( pwr_tCid cid, pwr_eBix bix, size_t *size, void **body)
{ {
switch ( cid) { switch ( cid) {
case pwr_eClass_Type: case pwr_eClass_Type:
......
...@@ -55,14 +55,6 @@ public: ...@@ -55,14 +55,6 @@ public:
virtual bool createSnapshot(const char *fileName); virtual bool createSnapshot(const char *fileName);
#if 0
void iterObject( void *udata,
pwr_tStatus (*bc)(void *,pwr_tOid, pwr_tCid, pwr_tOid, pwr_tOid,
pwr_tOid, pwr_tOid, pwr_tOid, const char *,
pwr_tTime, int, int));
void iterBody( void *udata,
pwr_tStatus (*bc)(void *,pwr_tOid, void *, void *));
#endif
int load( const char *fname); int load( const char *fname);
int load_files( const char *file_spec); int load_files( const char *file_spec);
void info(); void info();
...@@ -78,16 +70,16 @@ public: ...@@ -78,16 +70,16 @@ public:
bool registerObject( pwr_tOix oix, ref_wblnode node); bool registerObject( pwr_tOix oix, ref_wblnode node);
int nextOix() { return ++next_oix; } int nextOix() { return ++next_oix; }
int classNameToCid( const char *name, pwr_tCid *cid); int classNameToCid( const char *name, pwr_tCid *cid);
int getTemplateBody( pwr_tCid cid, pwr_eBix bix, int *size, void **body); int getTemplateBody( pwr_tCid cid, pwr_eBix bix, size_t *size, void **body);
int getTypeInfo( pwr_tTid tid, pwr_eType *type, int *size, int getTypeInfo( pwr_tTid tid, pwr_eType *type, size_t *size,
int *elements); int *elements);
int getTypeInfo( const char *type, pwr_tTid *tid, pwr_eType *type, int *size, int getTypeInfo( const char *type, pwr_tTid *tid, pwr_eType *type, size_t *size,
int *elements); int *elements);
int getClassInfo( pwr_tCid cid, int *rsize, int *dsize); int getClassInfo( pwr_tCid cid, size_t *rsize, size_t *dsize);
int getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, int *size, int getAttrInfo( const char *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, pwr_eType *type); size_t *offset, pwr_tTid *tid, int *elements, pwr_eType *type);
int getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, int *size, int getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, size_t *size,
int *offset, pwr_tTid *tid, int *elements, size_t *offset, pwr_tTid *tid, int *elements,
pwr_eType *type, int level); pwr_eType *type, int level);
ref_wblnode findObject( pwr_tOix oix); ref_wblnode findObject( pwr_tOix oix);
ref_wblnode findClass( const char *name); ref_wblnode findClass( const char *name);
...@@ -158,9 +150,9 @@ public: ...@@ -158,9 +150,9 @@ public:
bool commit(pwr_tStatus *sts) {return false;} bool commit(pwr_tStatus *sts) {return false;}
bool abort(pwr_tStatus *sts) {return false;} bool abort(pwr_tStatus *sts) {return false;}
virtual bool writeAttribute(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, unsigned int offset, unsigned int size, void *p) {return false;} virtual bool writeAttribute(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, size_t offset, size_t size, void *p) {return false;}
virtual void *readAttribute(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, unsigned int offset, unsigned int size, void *p); virtual void *readAttribute(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, size_t offset, size_t size, void *p);
virtual void *readBody(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, void *p); virtual void *readBody(pwr_tStatus *sts, wb_orep *o, pwr_eBix bix, void *p);
......
This diff is collapsed.
...@@ -48,7 +48,7 @@ public: ...@@ -48,7 +48,7 @@ public:
rbody_size(0), dbody_size(0), rbody(0), dbody(0), m_cid(0), rbody_size(0), dbody_size(0), rbody(0), dbody(0), m_cid(0),
m_tid(0), m_oid(pwr_cNOid), m_vrep(0), o_fth(0), o_bws(0), o_fws(0), o_fch(0), m_tid(0), m_oid(pwr_cNOid), m_vrep(0), o_fth(0), o_bws(0), o_fws(0), o_fch(0),
line_number(0), file(0), is_built(0), c_cid(0), c_cix(0), c_template(0), line_number(0), file(0), is_built(0), c_cid(0), c_cix(0), c_template(0),
b_bix(0), a_tid(0), a_size(0), a_offset(0), a_elements(0), a_flags(0) b_bix(pwr_eBix__), a_tid(0), a_size(0), a_offset(0), a_elements(0), a_flags(0)
{ {
strcpy( cname, ""); strcpy( cname, "");
} }
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
rbody_size(0), dbody_size(0), rbody(0), dbody(0), m_cid(0), rbody_size(0), dbody_size(0), rbody(0), dbody(0), m_cid(0),
m_tid(0), m_oid(pwr_cNOid), m_vrep(0), o_fth(0), o_bws(0), o_fws(0), o_fch(0), m_tid(0), m_oid(pwr_cNOid), m_vrep(0), o_fth(0), o_bws(0), o_fws(0), o_fch(0),
line_number(0), file(0), is_built(0), c_cid(0), c_cix(0), c_template(0), line_number(0), file(0), is_built(0), c_cid(0), c_cix(0), c_template(0),
b_bix(0), a_tid(0), a_size(0), a_offset(0), a_elements(0), a_flags(0) b_bix(pwr_eBix__), a_tid(0), a_size(0), a_offset(0), a_elements(0), a_flags(0)
{ {
CommonAST::setType(t->getType()); CommonAST::setType(t->getType());
CommonAST::setText(t->getText()); CommonAST::setText(t->getText());
...@@ -165,16 +165,16 @@ public: ...@@ -165,16 +165,16 @@ public:
void build( bool recursive); void build( bool recursive);
void buildObjBodyDef( ref_wblnode classdef); void buildObjBodyDef( ref_wblnode classdef);
void buildAttribute( ref_wblnode classdef, ref_wblnode objbodydef, void buildAttribute( ref_wblnode classdef, ref_wblnode objbodydef,
int *bindex, int *boffset); int *bindex, size_t *boffset);
void buildBuffer( ref_wblnode classdef, ref_wblnode objbodydef, void buildBuffer( ref_wblnode classdef, ref_wblnode objbodydef,
int *bindex, int *boffset); int *bindex, size_t *boffset);
void buildTemplate( ref_wblnode classdef); void buildTemplate( ref_wblnode classdef);
void buildBody( ref_wblnode object); void buildBody( ref_wblnode object);
void buildAttr( ref_wblnode object, int bix); void buildAttr( ref_wblnode object, pwr_eBix bix);
void buildBuff( ref_wblnode object, int bix, pwr_tCid buffer_cid, void buildBuff( ref_wblnode object, pwr_eBix bix, pwr_tCid buffer_cid,
int buffer_offset, int buffer_size); int buffer_offset, int buffer_size);
void buildBuffAttr( ref_wblnode object, int bix, pwr_tCid buffer_cid, void buildBuffAttr( ref_wblnode object, pwr_eBix bix, pwr_tCid buffer_cid,
int buffer_offset, int buffer_size); size_t buffer_offset, size_t buffer_size);
void link( wb_vrepwbl *vol, ref_wblnode father_node); void link( wb_vrepwbl *vol, ref_wblnode father_node);
void info_link( int level); void info_link( int level);
ref_wblnode find( wb_name *oname, int level); ref_wblnode find( wb_name *oname, int level);
...@@ -183,16 +183,17 @@ public: ...@@ -183,16 +183,17 @@ public:
int stringToOix( const char *buf, pwr_tOix *oix) const; int stringToOix( const char *buf, pwr_tOix *oix) const;
pwr_tCid Cid() { return c_cid;} pwr_tCid Cid() { return c_cid;}
int attrStringToValue( int type_id, char *value_str, int attrStringToValue( int type_id, char *value_str,
void *buffer_ptr, int buff_size, int attr_size); void *buffer_ptr, size_t buff_size, size_t attr_size);
bool exportHead(wb_import &i); bool exportHead(wb_import &i);
bool exportDbody(wb_import &i); bool exportDbody(wb_import &i);
bool exportRbody(wb_import &i); bool exportRbody(wb_import &i);
#if 0
void iterObject(wb_dbs *); void iterObject(wb_dbs *);
void iterRbody(wb_dbs *); void iterRbody(wb_dbs *);
void iterDbody(wb_dbs *); void iterDbody(wb_dbs *);
#if 0
void iterObject( void *udata, void iterObject( void *udata,
pwr_tStatus (*bc)(void *, pwr_tOid, pwr_tCid, pwr_tOid, pwr_tOid, pwr_tStatus (*bc)(void *, pwr_tOid, pwr_tCid, pwr_tOid, pwr_tOid,
pwr_tOid, pwr_tOid, pwr_tOid, char *, pwr_tOid, pwr_tOid, pwr_tOid, char *,
...@@ -206,8 +207,8 @@ public: ...@@ -206,8 +207,8 @@ public:
wbl_eNodeType node_type; wbl_eNodeType node_type;
int rbody_size; size_t rbody_size;
int dbody_size; size_t dbody_size;
void *rbody; void *rbody;
void *dbody; void *dbody;
pwr_tCid m_cid; pwr_tCid m_cid;
...@@ -233,16 +234,16 @@ public: ...@@ -233,16 +234,16 @@ public:
pwr_tTid ty_tid; pwr_tTid ty_tid;
pwr_eType ty_type; pwr_eType ty_type;
int ty_elements; int ty_elements;
int ty_size; size_t ty_size;
// ObjBodyDef stuff // ObjBodyDef stuff
int b_bix; pwr_eBix b_bix;
int b_size; size_t b_size;
// Attribute stuff // Attribute stuff
pwr_tTid a_tid; pwr_tTid a_tid;
int a_size; size_t a_size;
int a_offset; size_t a_offset;
int a_elements; int a_elements;
int a_flags; int a_flags;
int a_index; int a_index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment