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.27 by youi, Tue Jan 25 11:07:41 2005 UTC revision 1.28 by youi, Fri Jan 28 05:14:37 2005 UTC
# Line 119  ZEND_FUNCTION(xnp_unregister_item Line 119  ZEND_FUNCTION(xnp_unregister_item
119  ZEND_FUNCTION(xnp_get_uncertified_link     );  ZEND_FUNCTION(xnp_get_uncertified_link     );
120  ZEND_FUNCTION(xnp_get_private_item_id      );  ZEND_FUNCTION(xnp_get_private_item_id      );
121    
122  ZEND_FUNCTION(xnp_get_item_types            );  ZEND_FUNCTION(xnp_get_item_types           );
123    ZEND_FUNCTION(xnp_get_index_id_by_item_id  );
124    
125  };  };
126  /* compiled function list so Zend knows what's in this module */  /* compiled function list so Zend knows what's in this module */
# Line 209  zend_function_entry xnpalmod_functions[] Line 210  zend_function_entry xnpalmod_functions[]
210          ZEND_FE(xnp_get_uncertified_link     ,NULL)          ZEND_FE(xnp_get_uncertified_link     ,NULL)
211          ZEND_FE(xnp_get_private_item_id      ,NULL)          ZEND_FE(xnp_get_private_item_id      ,NULL)
212    
213          ZEND_FE(xnp_get_item_types            ,NULL)          ZEND_FE(xnp_get_item_types           ,NULL)
214            
215        ZEND_FE(xnp_get_index_id_by_item_id  ,NULL)
216    
217          {NULL, NULL, NULL}          {NULL, NULL, NULL}
218  };  };
219    
# Line 3253  ZEND_FUNCTION(xnp_get_uncertified_link) Line 3256  ZEND_FUNCTION(xnp_get_uncertified_link)
3256      int len;      int len;
3257      result_t result = getUncertifiedLink( (sessionid_t)sid, &pxids, &piids, &len );      result_t result = getUncertifiedLink( (sessionid_t)sid, &pxids, &piids, &len );
3258      if ( RES_OK == result ){      if ( RES_OK == result ){
3259          indexidsToZval( piids, len, &zxids );          indexidsToZval( pxids, len, &zxids );
3260          itemidsToZval( piids, len, &ziids );          itemidsToZval( piids, len, &ziids );
3261          freeIndexID( pxids );          freeIndexID( pxids );
3262          freeItemID( piids );          freeItemID( piids );
# Line 3306  ZEND_FUNCTION(xnp_get_item_types) Line 3309  ZEND_FUNCTION(xnp_get_item_types)
3309      }      }
3310          RETURN_LONG( result );          RETURN_LONG( result );
3311  }  }
3312    
3313    ZEND_FUNCTION(xnp_get_index_id_by_item_id)
3314    {
3315            result_t result;
3316            long sid;
3317            itemid_t iid;
3318            zval *zxids;
3319    
3320            if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lla",
3321              &sid, &iid, &zxids) == FAILURE) {
3322                    return;
3323            }
3324    
3325        const indexid_t *pindexids;
3326        int indexidLen;
3327        result = getIndexIDByItemID( (sessionid_t)sid, iid, &pindexids, &indexidLen );
3328        if ( RES_OK == result ){
3329            indexidsToZval( pindexids, indexidLen, &zxids );
3330            freeIndexID( pindexids );
3331        }
3332            RETURN_LONG(result);
3333    }
3334    

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

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