| 124 |
ZEND_FUNCTION(xnp_get_own_public_item_id ); |
ZEND_FUNCTION(xnp_get_own_public_item_id ); |
| 125 |
|
|
| 126 |
ZEND_FUNCTION(xnp_zip_create ); |
ZEND_FUNCTION(xnp_zip_create ); |
| 127 |
|
ZEND_FUNCTION(xnp_get_item_count ); |
| 128 |
}; |
}; |
| 129 |
/* compiled function list so Zend knows what's in this module */ |
/* compiled function list so Zend knows what's in this module */ |
| 130 |
zend_function_entry xnpalmod_functions[] = |
zend_function_entry xnpalmod_functions[] = |
| 219 |
ZEND_FE(xnp_get_own_public_item_id ,NULL) |
ZEND_FE(xnp_get_own_public_item_id ,NULL) |
| 220 |
|
|
| 221 |
ZEND_FE(xnp_zip_create ,NULL) |
ZEND_FE(xnp_zip_create ,NULL) |
| 222 |
|
ZEND_FE(xnp_get_item_count ,NULL) |
| 223 |
|
|
| 224 |
{NULL, NULL, NULL} |
{NULL, NULL, NULL} |
| 225 |
}; |
}; |
| 3413 |
RETURN_LONG( result ); |
RETURN_LONG( result ); |
| 3414 |
} |
} |
| 3415 |
|
|
| 3416 |
|
/** Readアクセス可能なアイテムの数を得る<br> |
| 3417 |
|
int xnp_item_count( int xnp_session_id, int &count ); |
| 3418 |
|
@param xnp_session_id XNPのセッションID |
| 3419 |
|
@param coutn アイテム数を受け取るリファレンス |
| 3420 |
|
@return RES_OK |
| 3421 |
|
@return RES_DB_NOT_INITIALIZED |
| 3422 |
|
@return RES_NO_SUCH_SESSION |
| 3423 |
|
@return RES_DB_QUERY_ERROR |
| 3424 |
|
*/ |
| 3425 |
|
ZEND_FUNCTION(xnp_get_item_count) |
| 3426 |
|
{ |
| 3427 |
|
long sid; |
| 3428 |
|
|
| 3429 |
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", |
| 3430 |
|
&sid) == FAILURE) { |
| 3431 |
|
return; |
| 3432 |
|
} |
| 3433 |
|
|
| 3434 |
|
int count = getItemCount( (sessionid_t)sid ); |
| 3435 |
|
|
| 3436 |
|
RETURN_LONG(count); |
| 3437 |
|
} |
| 3438 |
|
|