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.53 by tani, Tue Aug 23 07:35:33 2005 UTC revision 1.54 by aga4096, Mon Aug 29 02:05:34 2005 UTC
# Line 153  ZEND_FUNCTION(xnp_extract_nonbinder_item Line 153  ZEND_FUNCTION(xnp_extract_nonbinder_item
153  ZEND_FUNCTION(xnp_insert_event);  ZEND_FUNCTION(xnp_insert_event);
154  ZEND_FUNCTION(xnp_get_events);  ZEND_FUNCTION(xnp_get_events);
155  ZEND_FUNCTION(xnp_get_events_for_rss);  ZEND_FUNCTION(xnp_get_events_for_rss);
156    
157    ZEND_FUNCTION(xnp_update_item_status       );
158    ZEND_FUNCTION(xnp_refresh_item_status      );
159    ZEND_FUNCTION(xnp_selective_harvesting     );
160  };  };
161    
162    
# Line 272  zend_function_entry xnpalmod_functions[] Line 276  zend_function_entry xnpalmod_functions[]
276      ZEND_FE(xnp_insert_event             ,NULL)      ZEND_FE(xnp_insert_event             ,NULL)
277      ZEND_FE(xnp_get_events               ,second_arg_force_ref)      ZEND_FE(xnp_get_events               ,second_arg_force_ref)
278      ZEND_FE(xnp_get_events_for_rss       ,NULL)      ZEND_FE(xnp_get_events_for_rss       ,NULL)
279    
280        ZEND_FE(xnp_update_item_status       ,NULL)
281        ZEND_FE(xnp_refresh_item_status      ,NULL)
282        ZEND_FE(xnp_selective_harvesting     ,NULL)
283      {NULL, NULL, NULL}      {NULL, NULL, NULL}
284  };  };
285    
# Line 3920  ZEND_FUNCTION(xnp_get_events_for_rss) Line 3928  ZEND_FUNCTION(xnp_get_events_for_rss)
3928                    
3929          RETURN_LONG( result );          RETURN_LONG( result );
3930  }  }
3931    
3932    /**
3933     * item_statusの矛盾を修正する
3934     *
3935     * int xnp_update_item_status()
3936     * @return RES_OK
3937     *
3938     */
3939    ZEND_FUNCTION(xnp_update_item_status)
3940    {
3941            result_t result = updateItemStatus();
3942            RETURN_LONG( result );
3943    }
3944    
3945    /**
3946     * item_statusをクリアしてからupdateItemStatusを行う
3947     *
3948     * int xnp_refresh_item_status()
3949     * @return RES_OK
3950     *
3951     */
3952    ZEND_FUNCTION(xnp_refresh_item_status)
3953    {
3954            result_t result = refreshItemStatus();
3955            RETURN_LONG( result );
3956    }
3957    
3958    /**
3959     * selective harvestingを行う
3960     *
3961     * int xnp_selective_harvesting( int from, int until, int start_iid, int limit, array iids )
3962     * @param from, until 選択範囲 time_t  0なら指定しなかったものとみなす
3963     * @param start_iid  
3964     * @param limit       一度に取得する最大数
3965     * @param iids        結果を受け取る配列
3966     * @return RES_OK
3967     * @return RES_DB_NOT_INITIALIZED
3968     * @return RES_NO_SUCH_SESSION
3969     * @return RES_DB_QUERY_ERROR
3970     *
3971     */
3972    ZEND_FUNCTION(xnp_selective_harvesting)
3973    {
3974            long from, until, startIID, limit;
3975            zval *ziids;
3976            result_t result = RES_ERROR;
3977    
3978            if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lllla",
3979                                                              &from, &until, &startIID, &limit, &ziids) == FAILURE) {
3980                    fprintf( stderr, "error occured " );
3981                    return;
3982            }
3983    
3984            int iidsLen = 0;
3985            itemid_t *piids;
3986            result = selectiveHarvesting( from, until, startIID, limit, &piids, &iidsLen );
3987            if ( RES_OK == result ){
3988                    itemidsToZval( piids, iidsLen, &ziids );
3989                    freeItemID( piids );
3990            }
3991            
3992            RETURN_LONG( result );
3993    }
3994    
3995    
3996    
3997    

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

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