Browse CVS Repository
Diff of /xoonips/AL/xnpal.cc
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 121 |
|
|
| 122 |
ZEND_FUNCTION(xnp_get_item_types ); |
ZEND_FUNCTION(xnp_get_item_types ); |
| 123 |
ZEND_FUNCTION(xnp_get_index_id_by_item_id ); |
ZEND_FUNCTION(xnp_get_index_id_by_item_id ); |
| 124 |
|
ZEND_FUNCTION(xnp_get_own_public_item_id ); |
| 125 |
|
|
| 126 |
}; |
}; |
| 127 |
/* compiled function list so Zend knows what's in this module */ |
/* compiled function list so Zend knows what's in this module */ |
| 214 |
ZEND_FE(xnp_get_item_types ,NULL) |
ZEND_FE(xnp_get_item_types ,NULL) |
| 215 |
|
|
| 216 |
ZEND_FE(xnp_get_index_id_by_item_id ,NULL) |
ZEND_FE(xnp_get_index_id_by_item_id ,NULL) |
| 217 |
|
ZEND_FE(xnp_get_own_public_item_id ,NULL) |
| 218 |
|
|
| 219 |
{NULL, NULL, NULL} |
{NULL, NULL, NULL} |
| 220 |
}; |
}; |
| 3319 |
RETURN_LONG(result); |
RETURN_LONG(result); |
| 3320 |
} |
} |
| 3321 |
|
|
| 3322 |
|
ZEND_FUNCTION(xnp_get_own_public_item_id) |
| 3323 |
|
{ |
| 3324 |
|
long sid; |
| 3325 |
|
userid_t uid; |
| 3326 |
|
zval* ziids; |
| 3327 |
|
|
| 3328 |
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lla", |
| 3329 |
|
&sid, &uid, &ziids) == FAILURE) { |
| 3330 |
|
return; |
| 3331 |
|
} |
| 3332 |
|
|
| 3333 |
|
const itemid_t *piids; |
| 3334 |
|
int iidsLen; |
| 3335 |
|
result_t result = getOwnPublicItemID( (sessionid_t)sid, uid, &piids, &iidsLen ); |
| 3336 |
|
if ( RES_OK == result ){ |
| 3337 |
|
itemidsToZval( piids, iidsLen, &ziids ); |
| 3338 |
|
freeItemID( piids ); |
| 3339 |
|
} |
| 3340 |
|
|
| 3341 |
|
RETURN_LONG( result ); |
| 3342 |
|
} |
|
|
Legend:
| Removed from v.1.29 |
|
| changed lines |
| |
Added in v.1.30 |
|
|
| |