/foundation/graphic/graphic_2d/utils/buffer_handle/src/ |
D | buffer_handle.cpp | 41 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in AllocateBufferHandle() local 42 if (handle != nullptr) { in AllocateBufferHandle() 43 (void)memset_s(handle, handleSize, 0, handleSize); in AllocateBufferHandle() 44 handle->fd = -1; in AllocateBufferHandle() 46 handle->reserve[i] = -1; in AllocateBufferHandle() 48 handle->reserveFds = reserveFds; in AllocateBufferHandle() 49 handle->reserveInts = reserveInts; in AllocateBufferHandle() 53 return handle; in AllocateBufferHandle() 56 int32_t FreeBufferHandle(BufferHandle *handle) in FreeBufferHandle() argument 58 if (handle == nullptr) { in FreeBufferHandle() [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
D | NativeInterfaceDependCheckTest.cpp | 44 OH_AVErrCode Destroy(AudioEncoderDemo *encoderDemo, OH_AVCodec *handle) in Destroy() argument 46 return encoderDemo->NativeDestroy(handle); in Destroy() 49 OH_AVErrCode SetCallback(AudioEncoderDemo *encoderDemo, OH_AVCodec *handle) in SetCallback() argument 53 return encoderDemo->NativeSetCallback(handle, cb); in SetCallback() 56 OH_AVErrCode Configure(AudioEncoderDemo *encoderDemo, OH_AVCodec *handle) in Configure() argument 70 OH_AVErrCode ret = encoderDemo->NativeConfigure(handle, format); in Configure() 76 OH_AVErrCode Prepare(AudioEncoderDemo *encoderDemo, OH_AVCodec *handle) in Prepare() argument 78 return encoderDemo->NativePrepare(handle); in Prepare() 81 OH_AVErrCode Start(AudioEncoderDemo *encoderDemo, OH_AVCodec *handle, uint32_t &index, uint8_t *dat… in Start() argument 83 OH_AVErrCode ret = encoderDemo->NativeStart(handle); in Start() [all …]
|
D | NativeParamCheckTest.cpp | 52 OH_AVCodec *handle = encoderDemo->NativeCreateByMime("aaa"); variable 53 ASSERT_EQ(nullptr, handle); 55 handle = encoderDemo->NativeCreateByMime(OH_AVCODEC_MIMETYPE_AUDIO_AAC); 56 ASSERT_NE(nullptr, handle); 58 encoderDemo->NativeDestroy(handle); 59 handle = nullptr; 60 handle = encoderDemo->NativeCreateByMime(OH_AVCODEC_MIMETYPE_AUDIO_FLAC); 61 ASSERT_NE(nullptr, handle); 62 encoderDemo->NativeDestroy(handle); 74 OH_AVCodec *handle = encoderDemo->NativeCreateByName("aaa"); variable [all …]
|
D | NativeNullCheckTest.cpp | 49 OH_AVCodec* handle = encoderDemo->NativeCreateByMime(nullptr); variable 50 ASSERT_EQ(nullptr, handle); 64 OH_AVCodec* handle = encoderDemo->NativeCreateByName(nullptr); variable 65 ASSERT_EQ(nullptr, handle); 94 OH_AVCodec* handle = encoderDemo->NativeCreateByName("OH.Media.Codec.Encoder.Audio.AAC"); variable 95 ASSERT_NE(nullptr, handle); 102 encoderDemo->NativeDestroy(handle); 115 OH_AVCodec* handle = encoderDemo->NativeCreateByName("OH.Media.Codec.Encoder.Audio.AAC"); variable 116 ASSERT_NE(nullptr, handle); 123 ret = encoderDemo->NativeSetCallback(handle, cb); [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
D | NativeInterfaceDependCheckTest.cpp | 50 OH_AVErrCode Destroy(AudioDecoderDemo *decoderDemo, OH_AVCodec *handle) in Destroy() argument 52 return decoderDemo->NativeDestroy(handle); in Destroy() 55 OH_AVErrCode SetCallback(AudioDecoderDemo *decoderDemo, OH_AVCodec *handle) in SetCallback() argument 59 return decoderDemo->NativeSetCallback(handle, cb); in SetCallback() 62 OH_AVErrCode Configure(AudioDecoderDemo *decoderDemo, OH_AVCodec *handle) in Configure() argument 70 OH_AVErrCode ret = decoderDemo->NativeConfigure(handle, format); in Configure() 76 OH_AVErrCode Prepare(AudioDecoderDemo *decoderDemo, OH_AVCodec *handle) in Prepare() argument 78 return decoderDemo->NativePrepare(handle); in Prepare() 81 OH_AVErrCode Start(AudioDecoderDemo *decoderDemo, OH_AVCodec *handle, uint32_t &index, uint8_t *dat… in Start() argument 83 OH_AVErrCode ret = decoderDemo->NativeStart(handle); in Start() [all …]
|
D | NativeParamCheckTest.cpp | 48 OH_AVCodec *handle = decoderDemo->NativeCreateByMime("aaa"); variable 49 ASSERT_EQ(nullptr, handle); 51 handle = decoderDemo->NativeCreateByMime(OH_AVCODEC_MIMETYPE_AUDIO_AAC); 52 ASSERT_NE(nullptr, handle); 54 decoderDemo->NativeDestroy(handle); 55 handle = nullptr; 56 handle = decoderDemo->NativeCreateByMime(OH_AVCODEC_MIMETYPE_AUDIO_MPEG); 57 ASSERT_NE(nullptr, handle); 58 decoderDemo->NativeDestroy(handle); 70 OH_AVCodec *handle = decoderDemo->NativeCreateByName("aaa"); variable [all …]
|
D | NativeNullCheckTest.cpp | 49 OH_AVCodec* handle = decoderDemo->NativeCreateByMime(nullptr); variable 50 ASSERT_EQ(nullptr, handle); 64 OH_AVCodec* handle = decoderDemo->NativeCreateByName(nullptr); variable 65 ASSERT_EQ(nullptr, handle); 94 OH_AVCodec* handle = decoderDemo->NativeCreateByName("OH.Media.Codec.Decoder.Audio.Mpeg"); variable 95 ASSERT_NE(nullptr, handle); 102 decoderDemo->NativeDestroy(handle); 115 OH_AVCodec* handle = decoderDemo->NativeCreateByName("OH.Media.Codec.Decoder.Audio.Mpeg"); variable 116 ASSERT_NE(nullptr, handle); 123 ret = decoderDemo->NativeSetCallback(handle, cb); [all …]
|
/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/ |
D | NativeAVMuxerInterfaceDependCheckTest.cpp | 51 OH_AVMuxer* handle = nullptr; in Create() local 53 handle = muxerDemo->NativeCreate(fd, format); in Create() 55 return handle; in Create() 58 OH_AVErrCode SetRotation(AVMuxerDemo* muxerDemo, OH_AVMuxer* handle) in SetRotation() argument 62 OH_AVErrCode ret = muxerDemo->NativeSetRotation(handle, rotation); in SetRotation() 67 OH_AVErrCode AddTrack(AVMuxerDemo* muxerDemo, int32_t* trackId, OH_AVMuxer* handle) in AddTrack() argument 80 OH_AVErrCode ret = muxerDemo->NativeAddTrack(handle, trackId, trackFormat); in AddTrack() 85 OH_AVErrCode Start(AVMuxerDemo* muxerDemo, OH_AVMuxer* handle) in Start() argument 87 OH_AVErrCode ret = muxerDemo->NativeStart(handle); in Start() 92 OH_AVErrCode WriteSampleBuffer(AVMuxerDemo* muxerDemo, OH_AVMuxer* handle, uint32_t trackIndex) in WriteSampleBuffer() argument [all …]
|
D | NativeAVMuxerParamCheckTest.cpp | 69 OH_AVMuxer *handle = muxerDemo->NativeCreate(fd, format); variable 70 ASSERT_EQ(nullptr, handle); 73 handle = muxerDemo->NativeCreate(fd, format); 74 ASSERT_EQ(nullptr, handle); 77 handle = muxerDemo->NativeCreate(fd, format); 78 ASSERT_NE(nullptr, handle); 79 muxerDemo->NativeDestroy(handle); 93 OH_AVMuxer *handle = muxerDemo->NativeCreate(fd, format); variable 94 ASSERT_NE(nullptr, handle); 95 muxerDemo->NativeDestroy(handle); [all …]
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/ |
D | cmd_list_helper_test.cpp | 51 ImageHandle handle = CmdListHelper::AddImageToCmdList(cmdList, image); variable 52 EXPECT_EQ(handle.offset, 0); 53 EXPECT_EQ(handle.size, 0); 65 ImageHandle handle = {}; variable 68 handle.offset = cmdList.AddImageData(imageData->GetData(), imageData->GetSize()); 69 handle.size = imageData->GetSize(); 70 auto image = CmdListHelper::GetImageFromCmdList(cmdList, handle); 84 ImageHandle handle = CmdListHelper::AddBitmapToCmdList(cmdList, bitmap); variable 85 EXPECT_EQ(handle.offset, 0); 86 EXPECT_EQ(handle.size, 0); [all …]
|
/foundation/graphic/graphic_2d/frameworks/surface/src/ |
D | surface_tunnel_handle.cpp | 28 GraphicExtDataHandle *handle = static_cast<GraphicExtDataHandle *>(malloc(handleSize)); in AllocExtDataHandle() local 29 if (handle == nullptr) { in AllocExtDataHandle() 33 auto ret = memset_s(handle, handleSize, 0, handleSize); in AllocExtDataHandle() 35 free(handle); in AllocExtDataHandle() 39 handle->fd = -1; in AllocExtDataHandle() 40 handle->reserveInts = reserveInts; in AllocExtDataHandle() 42 handle->reserve[i] = -1; in AllocExtDataHandle() 44 return handle; in AllocExtDataHandle() 47 void FreeExtDataHandle(GraphicExtDataHandle *handle) in FreeExtDataHandle() argument 49 if (handle == nullptr) { in FreeExtDataHandle() [all …]
|
/foundation/graphic/graphic_2d/frameworks/surface/test/unittest/ |
D | buffer_manager_test.cpp | 80 BufferHandle *handle = buffer->GetBufferHandle(); variable 82 ASSERT_NE(handle, nullptr); 83 ASSERT_EQ(handle->virAddr, nullptr); 98 BufferHandle *handle; variable 100 handle = buffer->GetBufferHandle(); 101 ASSERT_NE(handle, nullptr); 102 ASSERT_EQ(handle->virAddr, nullptr); 107 handle = buffer->GetBufferHandle(); 108 ASSERT_NE(handle, nullptr); 109 ASSERT_NE(handle->virAddr, nullptr); [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
D | sdp_server.h | 37 int SdpDestroyServiceRecord(uint32_t handle); 38 int SdpRegisterServiceRecord(uint32_t handle); 39 int SdpDeregisterServiceRecord(uint32_t handle); 40 int SdpAddServiceClassIdList(uint32_t handle, const BtUuid *classid, uint16_t classidNumber); 41 int SdpAddServiceRecordState(uint32_t handle, uint32_t state); 42 int SdpAddServiceId(uint32_t handle, const BtUuid *serviceid); 43 int SdpAddProtocolDescriptorList(uint32_t handle, const SdpProtocolDescriptor *descriptor, uint16_t… 45 …uint32_t handle, const SdpAdditionalProtocolDescriptor *descriptorList, uint16_t descriptorListNum… 46 int SdpAddBrowseGroupList(uint32_t handle, const BtUuid *browseUuid, uint16_t browseUuidNumber); 48 … uint32_t handle, const SdpLanguageBaseAttributeId *baseAttributeId, uint16_t baseAttributeIdNum); [all …]
|
/foundation/distributedhardware/distributed_audio/services/hdfaudioclient/include/ |
D | daudio_control_internal.h | 33 static int32_t Start(AudioHandle handle); 34 static int32_t Stop(AudioHandle handle); 35 static int32_t Pause(AudioHandle handle); 36 static int32_t Resume(AudioHandle handle); 37 static int32_t Flush(AudioHandle handle); 38 static int32_t TurnStandbyMode(AudioHandle handle); 39 static int32_t AudioDevDump(AudioHandle handle, int32_t range, int32_t fd); 43 int32_t AudioControlInternal<T>::Start(AudioHandle handle) in Start() argument 45 if (handle == nullptr) { in Start() 50 T *context = reinterpret_cast<T *>(handle); in Start() [all …]
|
D | daudio_volume_internal.h | 31 static int32_t SetMute(AudioHandle handle, bool mute); 32 static int32_t GetMute(AudioHandle handle, bool *mute); 33 static int32_t SetVolume(AudioHandle handle, float volume); 34 static int32_t GetVolume(AudioHandle handle, float *volume); 35 static int32_t GetGainThreshold(AudioHandle handle, float *min, float *max); 36 static int32_t SetGain(AudioHandle handle, float gain); 37 static int32_t GetGain(AudioHandle handle, float *gain); 40 int32_t AudioVolumeInternal<T>::SetMute(AudioHandle handle, bool mute) in SetMute() argument 42 if (handle == nullptr) { in SetMute() 47 T *context = reinterpret_cast<T *>(handle); in SetMute() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/transport/ |
D | transport_rfcomm.cpp | 136 RfcommTransport *RfcommTransport::AddTransportInternal(RawAddress addr, uint16_t handle) in AddTransportInternal() argument 139 GetEncryptAddr(addr.GetAddress()).c_str(), handle); in AddTransportInternal() 143 newTransport->rfcHandle_ = handle; in AddTransportInternal() 146 transportMap_.insert(std::pair<uint16_t, RfcommTransport *>(handle, newTransport)); in AddTransportInternal() 154 void RfcommTransport::TransportRfcEventCallback(uint16_t handle, uint32_t event, in TransportRfcEventCallback() argument 157 HILOGI("[RfcommTransport] handle:%{public}hu event:%{public}u", handle, event); in TransportRfcEventCallback() 166 … std::pair<uint16_t, RawAddress>(handle, RawAddress::ConvertToString(incomingEvent.addr.addr))); in TransportRfcEventCallback() 168 …handle, GetEncryptAddr(RawAddress::ConvertToString(incomingEvent.addr.addr).GetAddress()).c_str()); in TransportRfcEventCallback() 170 … std::pair<RawAddress, uint16_t>(RawAddress::ConvertToString(incomingEvent.addr.addr), handle)); in TransportRfcEventCallback() 176 TransportRfcConnectSuccess(handle, eventData, transport); in TransportRfcEventCallback() [all …]
|
/foundation/multimodalinput/input/frameworks/napi/pointer/include/ |
D | js_pointer_manager.h | 60 napi_value SetPointerVisible(napi_env env, bool visible, napi_value handle = nullptr); 62 napi_value IsPointerVisible(napi_env env, napi_value handle = nullptr); 63 napi_value SetPointerColor(napi_env env, int32_t color, napi_value handle = nullptr); 64 napi_value GetPointerColor(napi_env env, napi_value handle = nullptr); 68 napi_value SetPointerSpeed(napi_env env, int32_t pointerSpeed, napi_value handle = nullptr); 70 napi_value GetPointerSpeed(napi_env env, napi_value handle = nullptr); 72 …SetPointerStyle(napi_env env, int32_t windowid, int32_t pointerStyle, napi_value handle = nullptr); 74 napi_value GetPointerStyle(napi_env env, int32_t windowid, napi_value handle = nullptr); 76 napi_value SetPointerLocation(napi_env env, napi_value handle, int32_t x, int32_t y); 77 napi_value EnterCaptureMode(napi_env env, int32_t windowId, napi_value handle = nullptr); [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
D | rfcomm.c | 123 int RfcommConnectChannel(const RfcommConnectReqInfo *reqInfo, uint16_t *handle) in RfcommConnectChannel() argument 151 *handle = channel->handle; in RfcommConnectChannel() 169 *handle = channel->handle; in RfcommConnectChannel() 222 int RfcommAcceptConnection(uint16_t handle) in RfcommAcceptConnection() argument 224 LOG_INFO("%{public}s handle:%hu", __func__, handle); in RfcommAcceptConnection() 226 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); in RfcommAcceptConnection() 244 int RfcommRejectConnection(uint16_t handle) in RfcommRejectConnection() argument 246 LOG_INFO("%{public}s handle:%hu", __func__, handle); in RfcommRejectConnection() 248 RfcommChannelInfo *channel = RfcommGetChannelByHandle(handle); in RfcommRejectConnection() 264 int RfcommDisconnectChannel(uint16_t handle) in RfcommDisconnectChannel() argument [all …]
|
D | rfcomm_api.c | 215 uint16_t handle; member 224 uint16_t handle = 0; in RfcommConnectChannelTsk() local 232 int ret = RfcommConnectChannel(&ctx->reqInfo, &handle); in RfcommConnectChannelTsk() 233 ctx->handle = handle; in RfcommConnectChannelTsk() 249 int RFCOMM_ConnectChannel(const RfcommConnectReqInfo *reqInfo, uint16_t *handle) in RFCOMM_ConnectChannel() argument 271 *handle = ctx->handle; in RFCOMM_ConnectChannel() 354 uint16_t handle; member 368 RfcommAcceptConnection(ctx->handle); in RfcommAcceptConnectionTsk() 383 int RFCOMM_AcceptConnection(uint16_t handle) in RFCOMM_AcceptConnection() argument 385 LOG_INFO("%{public}s handle:%hu", __func__, handle); in RFCOMM_AcceptConnection() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
D | sqlite_single_relational_storage_engine.cpp | 81 int SQLiteSingleRelationalStorageEngine::CreateNewExecutor(bool isWrite, StorageExecutor *&handle) in CreateNewExecutor() argument 99 handle = NewSQLiteStorageExecutor(db, isWrite, false); in CreateNewExecutor() 100 if (handle == nullptr) { in CreateNewExecutor() 113 …teSingleRelationalStorageEngine::ReleaseExecutor(SQLiteSingleVerRelationalStorageExecutor *&handle) in ReleaseExecutor() argument 115 if (handle == nullptr) { in ReleaseExecutor() 118 StorageExecutor *databaseHandle = handle; in ReleaseExecutor() 120 handle = nullptr; in ReleaseExecutor() 141 int SaveSchemaToMetaTable(SQLiteSingleVerRelationalStorageExecutor *handle, const RelationalSchemaO… in SaveSchemaToMetaTable() argument 146 int errCode = handle->PutKvData(schemaKey, schemaVal); // save schema to meta_data in SaveSchemaToMetaTable() 153 int SaveSyncTableTypeToMeta(SQLiteSingleVerRelationalStorageExecutor *handle, const std::string &ta… in SaveSyncTableTypeToMeta() argument [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
D | smp_receive.c | 34 static void SMP_ReceivePairingRequest(uint16_t handle, const Buffer *buffer); 35 static void SMP_ReceivePairingResponse(uint16_t handle, const Buffer *buffer); 36 static void SMP_ReceivePairingConfirm(uint16_t handle, const Buffer *buffer); 37 static void SMP_ReceivePairingRandom(uint16_t handle, const Buffer *buffer); 38 static void SMP_ReceiveEncryptionInformation(uint16_t handle, const Buffer *buffer); 39 static void SMP_ReceiveMasterIdentification(uint16_t handle, const Buffer *buffer); 40 static void SMP_ReceiveIdentityInformation(uint16_t handle, const Buffer *buffer); 41 static void SMP_ReceiveIdentityAddressInformation(uint16_t handle, const Buffer *buffer); 42 static void SMP_ReceiveSigningInformation(uint16_t handle, const Buffer *buffer); 43 static void SMP_ReceivePairingFailed(uint16_t handle, const Buffer *buffer); [all …]
|
D | smp_cmd.h | 31 int SMP_SendPairingRequest(uint16_t handle, const SMP_PairParam *pairReqParam, SMP_SendDataCb cb); 32 int SMP_SendPairingResponse(uint16_t handle, const SMP_PairParam *pairRspParam, SMP_SendDataCb cb); 33 int SMP_SendPairingConfirm(uint16_t handle, const uint8_t *confirm, SMP_SendDataCb cb); 34 int SMP_SendPairingRandom(uint16_t handle, const uint8_t *random, SMP_SendDataCb cb); 35 int SMP_SendPairingFailed(uint16_t handle, uint8_t reason, SMP_SendDataCb cb); 36 int SMP_SendPairingPublicKey(uint16_t handle, const uint8_t *publicKey, SMP_SendDataCb cb); 37 int SMP_SendPairingDHKeyCheck(uint16_t handle, const uint8_t *dhKeyCheck, SMP_SendDataCb cb); 38 int SMP_SendEncryptionInformation(uint16_t handle, const uint8_t *ltk, SMP_SendDataCb cb); 39 int SMP_SendMasterIdentification(uint16_t handle, uint16_t ediv, const uint8_t *rand, SMP_SendDataC… 40 int SMP_SendIdentityInformation(uint16_t handle, const uint8_t *irk, SMP_SendDataCb cb); [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
D | a2dp_avdtp.h | 70 static uint16_t CreateStream(const BtAddr &addr, const uint8_t codecIndex, uint16_t &handle); 141 …const BtAddr &addr, const uint16_t handle, const uint8_t seid, const AvdtSepConfig &cfg, uint8_t &… 151 static uint16_t OpenReq(const uint16_t handle, uint8_t &label); 162 static uint16_t DelayReq(const uint16_t handle, uint8_t &label, uint16_t delayValue); 171 static uint16_t CloseReq(const uint16_t handle); 182 static uint16_t CloseRsp(const uint16_t handle, const uint8_t label, const uint8_t errCode); 192 static uint16_t SuspendReq(const uint16_t handle, uint8_t &label); 202 static uint16_t StartReq(const uint16_t handle, uint8_t &label); 215 … const uint16_t handle, const uint8_t label, const uint16_t errHandle, const uint8_t errCode); 228 … const uint16_t handle, const uint8_t label, const uint16_t errHandle, const uint8_t errCode); [all …]
|
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/codec/hdi_plugins/ |
D | hdi_codec_util.h | 60 inline int32_t HdiSetParameter(T *handle, uint32_t paramIndex, U ¶m) in HdiSetParameter() argument 63 …return handle->SetParameter(handle, paramIndex, reinterpret_cast<int8_t *>(¶m), sizeof(param)); in HdiSetParameter() 67 inline int32_t HdiGetParameter(T *handle, uint32_t paramIndex, U ¶m) in HdiGetParameter() argument 70 …return handle->GetParameter(handle, paramIndex, reinterpret_cast<int8_t *>(¶m), sizeof(param)); in HdiGetParameter() 74 inline int32_t HdiGetConfig(T *handle, uint32_t paramIndex, U ¶m) in HdiGetConfig() argument 77 return handle->GetConfig(handle, paramIndex, reinterpret_cast<int8_t *>(¶m), sizeof(param)); in HdiGetConfig() 81 inline int32_t HdiSetConfig(T *handle, uint32_t paramIndex, U ¶m) in HdiSetConfig() argument 84 return handle->SetConfig(handle, paramIndex, reinterpret_cast<int8_t *>(¶m), sizeof(param)); in HdiSetConfig() 88 inline int32_t HdiSendCommand(T *handle, OMX_COMMANDTYPE cmd, uint32_t param, U &&cmdData) in HdiSendCommand() argument 91 …return handle->SendCommand(handle, cmd, param, reinterpret_cast<int8_t *>(&cmdData), sizeof(cmdDat… in HdiSendCommand() [all …]
|
/foundation/arkui/ace_engine/frameworks/base/network/ |
D | download_manager.cpp | 27 #define ACE_CURL_EASY_SET_OPTION(handle, opt, data) … argument 29 … CURLcode result = curl_easy_setopt(handle, opt, data); \ 50 … std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), &curl_easy_cleanup); in Download() local 51 if (!handle) { in Download() 60 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_URL, url.c_str()); in Download() 61 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_WRITEFUNCTION, OnWritingMemory); in Download() 62 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_WRITEDATA, &dataOut); in Download() 64 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_USERAGENT, "libcurl-agent/1.0"); in Download() 65 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_URL, url.c_str()); in Download() 67 ACE_CURL_EASY_SET_OPTION(handle.get(), CURLOPT_CAINFO, "/etc/ssl/certs/cacert.pem"); in Download() [all …]
|