Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/xnpal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.28 by youi, Fri Jan 28 05:14:37 2005 UTC revision 1.29 by youi, Sat Jan 29 09:52:30 2005 UTC
# Line 532  private: Line 532  private:
532                  HashTable *ht = Z_ARRVAL_P(pz);                  HashTable *ht = Z_ARRVAL_P(pz);
533                  long l;                  long l;
534                  char *p;                  char *p;
                 double d;  
535                  if ( hashGetLong  ( ht, "item_id"           , &l ) ) setItemID           ( l );                  if ( hashGetLong  ( ht, "item_id"           , &l ) ) setItemID           ( l );
536                  if ( hashGetLong  ( ht, "item_type_id"      , &l ) ) setItemTypeID       ( l );                  if ( hashGetLong  ( ht, "item_type_id"      , &l ) ) setItemTypeID       ( l );
537                  if ( hashGetLong  ( ht, "contributor_uid"   , &l ) ) setContributorUID   ( l );                  if ( hashGetLong  ( ht, "contributor_uid"   , &l ) ) setContributorUID   ( l );
# Line 904  result_t itemsToZval( const item_t *pIte Line 903  result_t itemsToZval( const item_t *pIte
903  result_t zvalToItem( zval *z, item_t* pItem )  result_t zvalToItem( zval *z, item_t* pItem )
904  {  {
905          zval         **tmp;          zval         **tmp;
         HashPosition   pos;  
         int i = 0;  
906          char* key = 0;          char* key = 0;
907    
908          key = "item_id";          key = "item_id";
# Line 1117  result_t groupToZval( const group_t *pGr Line 1114  result_t groupToZval( const group_t *pGr
1114  result_t zvalToGroup( zval *z, group_t *pGroup )  result_t zvalToGroup( zval *z, group_t *pGroup )
1115  {  {
1116          zval         **tmp;          zval         **tmp;
         HashPosition   pos;  
         int i = 0;  
1117          char* key = 0;          char* key = 0;
1118    
1119          key = "gid";          key = "gid";
# Line 1252  ZEND_FUNCTION(xnp_get_group) Line 1247  ZEND_FUNCTION(xnp_get_group)
1247  ZEND_FUNCTION(xnp_get_groups)  ZEND_FUNCTION(xnp_get_groups)
1248  {  {
1249          result_t result;          result_t result;
1250          long sid, uid;      long sid;
1251          zval *zcriteria;          zval *zcriteria;
1252          zval *zgids;          zval *zgids;
1253          zval *zgroups;          zval *zgroups;
# Line 1771  ZEND_FUNCTION(xnp_dump_uids) Line 1766  ZEND_FUNCTION(xnp_dump_uids)
1766    */    */
1767  ZEND_FUNCTION(xnp_get_group_count)  ZEND_FUNCTION(xnp_get_group_count)
1768  {  {
         result_t result;  
1769          long sid;          long sid;
1770    
1771          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l",
# Line 1831  ZEND_FUNCTION(xnp_get_groups_by_uid) Line 1825  ZEND_FUNCTION(xnp_get_groups_by_uid)
1825    */    */
1826  ZEND_FUNCTION(xnp_is_group_admin)  ZEND_FUNCTION(xnp_is_group_admin)
1827  {  {
         result_t result;  
1828          long sid, gid, uid;          long sid, gid, uid;
1829    
1830          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",
# Line 2380  ZEND_FUNCTION(xnp_get_item_permission) Line 2373  ZEND_FUNCTION(xnp_get_item_permission)
2373          long sid;          long sid;
2374          itemid_t iid;          itemid_t iid;
2375      long op;      long op;
         bool result = false;  
2376    
2377          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",
2378                                                            &sid, &iid, &op) == FAILURE) {                                                            &sid, &iid, &op) == FAILURE) {
# Line 2408  ZEND_FUNCTION(xnp_get_index_permission) Line 2400  ZEND_FUNCTION(xnp_get_index_permission)
2400          long sid;          long sid;
2401          indexid_t xid;          indexid_t xid;
2402      long op;      long op;
         bool result = false;  
2403    
2404          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll",
2405                                                            &sid, &xid, &op) == FAILURE) {                                                            &sid, &xid, &op) == FAILURE) {
# Line 2437  ZEND_FUNCTION(xnp_get_certify_permission Line 2428  ZEND_FUNCTION(xnp_get_certify_permission
2428          itemid_t iid;          itemid_t iid;
2429          indexid_t xid;          indexid_t xid;
2430      certify_t state;      certify_t state;
         bool result = false;  
2431    
2432          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll",
2433                                                            &sid, &xid, &iid, &state) == FAILURE) {                                                            &sid, &xid, &iid, &state) == FAILURE) {
# Line 2508  ZEND_FUNCTION(xnp_set_certify_state) Line 2498  ZEND_FUNCTION(xnp_set_certify_state)
2498                  fprintf( stderr, "error occured " );                  fprintf( stderr, "error occured " );
2499                  return;                  return;
2500          }          }
         certify_t st;  
2501          result = setCertifyState( (sessionid_t)sid, xid, iid, state );          result = setCertifyState( (sessionid_t)sid, xid, iid, state );
2502          RETURN_LONG( result );          RETURN_LONG( result );
2503  }  }
# Line 2610  ZEND_FUNCTION(xnp_get_config_value) Line 2599  ZEND_FUNCTION(xnp_get_config_value)
2599  {  {
2600          zval *zname;          zval *zname;
2601          zval *zvalue;          zval *zvalue;
         const char* name;  
2602          char* value;          char* value;
2603          result_t result = RES_ERROR;          result_t result = RES_ERROR;
2604    
# Line 2644  ZEND_FUNCTION(xnp_set_config_value) Line 2632  ZEND_FUNCTION(xnp_set_config_value)
2632  {  {
2633          zval *zname;          zval *zname;
2634          zval *zvalue;          zval *zvalue;
         const char* name;  
         char* value;  
2635          result_t result = RES_ERROR;          result_t result = RES_ERROR;
2636    
2637          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz",
# Line 2855  ZEND_FUNCTION(xnp_update_item) Line 2841  ZEND_FUNCTION(xnp_update_item)
2841          long sid;          long sid;
2842          zval *zitem;          zval *zitem;
2843          item_t item;          item_t item;
         itemid_t iid;  
2844          result_t result = RES_ERROR;          result_t result = RES_ERROR;
2845    
2846          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "la",          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "la",

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26