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.29 by youi, Sat Jan 29 09:52:30 2005 UTC revision 1.30 by youi, Thu Feb 3 12:02:42 2005 UTC
# Line 121  ZEND_FUNCTION(xnp_get_private_item_id Line 121  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  );  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 */
# Line 213  zend_function_entry xnpalmod_functions[] Line 214  zend_function_entry xnpalmod_functions[]
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  };  };
# Line 3317  ZEND_FUNCTION(xnp_get_index_id_by_item_i Line 3319  ZEND_FUNCTION(xnp_get_index_id_by_item_i
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

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