yumapro  20.10-12
YumaPro SDK
agt_curl.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 - 2021, YumaWorks, Inc., All Rights Reserved.
3  *
4  * Unless required by applicable law or agreed to in writing,
5  * software distributed under the License is distributed on an
6  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7  * KIND, either express or implied. See the License for the
8  * specific language governing permissions and limitations
9  * under the License.
10  */
11 #ifndef _H_agt_curl
12 #define _H_agt_curl
13 
14 /* FILE: agt_curl.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ----------------------------------------------------------------------
35 22-dec-17 abb Begun
36 
37 */
38 
39 #ifndef _H_status_enum
40 #include "status_enum.h"
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /********************************************************************
48 * *
49 * C O N S T A N T S *
50 * *
51 *********************************************************************/
52 
53 
54 /********************************************************************
55 * *
56 * T Y P E S *
57 * *
58 *********************************************************************/
59 
60 
61 /********************************************************************
62 * *
63 * F U N C T I O N S *
64 * *
65 *********************************************************************/
66 
83 extern void agt_curl_init (void);
84 
85 
91 extern void agt_curl_cleanup (void);
92 
93 
102 extern status_t
103  agt_curl_get (const xmlChar *urlspec,
104  const xmlChar *savespec);
105 
106 
115 extern status_t
116  agt_curl_put (const xmlChar *urlspec,
117  const xmlChar *srcspec);
118 
119 
123 #ifdef __cplusplus
124 } /* end extern 'C' */
125 #endif
126 
127 #endif /* _H_agt_curl */
ses.h
NETCONF Session Common definitions module.
agt_curl.h
YumaPro libcurl API.
ERR_FIL_STAT
@ ERR_FIL_STAT
105
Definition: status_enum.h:217
status_enum.h
global error status code enumerations
ncxconst.h
Contains NCX constants.
ncxmod.h
NCX Module Load Manager.
agt_curl_init
void agt_curl_init(void)
Iniitial the libcurl API.
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
rpc.h
NETCONF protocol remote procedure call common definitions.
yang.h
YANG Module parser utilities.
yangconst.h
Contains YANG constants separated to prevent H file include loops.
agt.h
Multi-Protocol Network Management Server.
ERR_NCX_OPERATION_NOT_SUPPORTED
@ ERR_NCX_OPERATION_NOT_SUPPORTED
273
Definition: status_enum.h:314
agt_get_profile
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4118
ncx.h
YANG module utility functions.
obj.h
Data Object Support.
agt_curl_put
status_t agt_curl_put(const xmlChar *urlspec, const xmlChar *srcspec)
PUT some file via libcurl.
ERR_FIL_OPEN
@ ERR_FIL_OPEN
system errors start at 100
Definition: status_enum.h:212
status.h
Global error messages for status code enumerations.
agt_curl_get
status_t agt_curl_get(const xmlChar *urlspec, const xmlChar *savespec)
GET some file via libcurl.
agt_curl_cleanup
void agt_curl_cleanup(void)
Cleanup the libcurl API.
dlq.h
dlq provides general double-linked list and queue support:
LOGDEBUG3
#define LOGDEBUG3
Check if at least log-level=debug3.
Definition: log.h:297