Go to the documentation of this file.00001 #ifdef HAVE_CONFIG_H
00002 #include "config.h"
00003 #endif
00004
00005 #include "grpc.h"
00006
00007 grpc_error_t
00008 grpc_dsi_close(DSI_FILE *dsi_file)
00009 {
00010 #ifdef DSI_IBP
00011 struct ibp_timer ls_timeout;
00012 struct ibp_capstatus ls_info;
00013
00014 ls_timeout.ServerSync = 10;
00015 ls_timeout.ClientTimeout = 10;
00016
00017 if(IBP_manage(dsi_file->dsi_specifics.ibp.cap->manageCap,
00018 &ls_timeout, IBP_DECR, IBP_READCAP, &ls_info) < 0)
00019 GRPC_RETURN(GRPC_OTHER_ERROR_CODE, GRPC_DSI_MANAGE_ERROR);
00020
00021 GRPC_RETURN(GRPC_NO_ERROR, GRPC_NO_MINOR_ERROR);
00022 #endif
00023
00024 GRPC_RETURN(GRPC_OTHER_ERROR_CODE, GRPC_DSI_DISABLED);
00025 }