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.36 by tani, Fri Feb 25 09:45:45 2005 UTC revision 1.37 by tani, Sat Feb 26 05:11:31 2005 UTC
# Line 118  ZEND_FUNCTION(xnp_unregister_item Line 118  ZEND_FUNCTION(xnp_unregister_item
118    
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    ZEND_FUNCTION(xnp_get_group_item_id        );
122    
123  ZEND_FUNCTION(xnp_get_item_types           );  ZEND_FUNCTION(xnp_get_item_types           );
124  ZEND_FUNCTION(xnp_get_index_id_by_item_id  );  ZEND_FUNCTION(xnp_get_index_id_by_item_id  );
# Line 212  zend_function_entry xnpalmod_functions[] Line 213  zend_function_entry xnpalmod_functions[]
213    
214          ZEND_FE(xnp_get_uncertified_link     ,NULL)          ZEND_FE(xnp_get_uncertified_link     ,NULL)
215          ZEND_FE(xnp_get_private_item_id      ,NULL)          ZEND_FE(xnp_get_private_item_id      ,NULL)
216            ZEND_FE(xnp_get_group_item_id        ,NULL)
217    
218          ZEND_FE(xnp_get_item_types           ,NULL)          ZEND_FE(xnp_get_item_types           ,NULL)
219            
# Line 2978  ZEND_FUNCTION(xnp_get_private_item_id) Line 2980  ZEND_FUNCTION(xnp_get_private_item_id)
2980            
2981  }  }
2982    
2983    /**
2984     *
2985     * グループインデックスに登録されたアイテムのIDを取得します.
2986     *
2987     * @param sid セッションID
2988     * @param uid 対象グループのID
2989     * @param iids 登録されたアイテムIDを受け取る引数
2990     * @param iidsLen iidsに格納された個数を受け取る引数
2991     * @return RES_OK
2992     * @return RES_DB_NOT_INITIALIZED
2993     * @return RES_NO_SUCH_SESSION
2994     * @return RES_DB_QUERY_ERROR
2995     * @return RES_ERROR
2996     *
2997     */
2998    //result_t getGroupItemID( sessionid_t sid, groupid_t gid, const itemid_t** iids, int* iidsLen )
2999    ZEND_FUNCTION(xnp_get_group_item_id)
3000    {
3001            long sid;
3002            groupid_t gid;
3003        zval* ziids;
3004        
3005            if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lla",
3006                                  &sid, &gid, &ziids) == FAILURE) {
3007                    return;
3008            }
3009        
3010        const itemid_t *piids;
3011        int iidsLen;
3012        result_t result = getGroupItemID( (sessionid_t)sid, gid, &piids, &iidsLen );
3013        if ( RES_OK == result ){
3014            itemidsToZval( piids, iidsLen, &ziids );
3015            freeItemID( piids );
3016        }
3017        
3018            RETURN_LONG( result );
3019    }
3020    
3021    
3022  /**  /**
3023   *   *

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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