Guardtime KSI c SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
net_file.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2016 Guardtime, Inc.
3  *
4  * This file is part of the Guardtime client SDK.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License").
7  * You may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  * http://www.apache.org/licenses/LICENSE-2.0
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES, CONDITIONS, OR OTHER LICENSES OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  * "Guardtime" and "KSI" are trademarks or registered trademarks of
16  * Guardtime, Inc., and no license to trademarks is granted; Guardtime
17  * reserves and retains all trademark rights.
18  */
19 
20 #ifndef KSI_NET_FILE_H_
21 #define KSI_NET_FILE_H_
22 
23 #include "net.h"
24 #include "common.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30  typedef struct KSI_FsClient_st KSI_FsClient;
31 
38  int KSI_FsClient_new(KSI_CTX *ctx, KSI_NetworkClient **client);
39 
51  int KSI_FsClient_setPublicationUrl(KSI_NetworkClient *client, const char *path);
52 
53 
66  int KSI_FsClient_setExtender(KSI_NetworkClient *client, const char *path, const char *user, const char *pass);
67 
80  int KSI_FsClient_setAggregator(KSI_NetworkClient *client, const char *path, const char *user, const char *pass);
81 
88  int KSI_FsClient_extractPath(const char *uri, char **path);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* KSI_NET_FILE_H_ */
struct KSI_FsClient_st KSI_FsClient
Definition: net_file.h:30
int KSI_FsClient_setPublicationUrl(KSI_NetworkClient *client, const char *path)
int KSI_FsClient_setAggregator(KSI_NetworkClient *client, const char *path, const char *user, const char *pass)
int KSI_FsClient_new(KSI_CTX *ctx, KSI_NetworkClient **client)
struct KSI_CTX_st KSI_CTX
Definition: types_base.h:124
int KSI_FsClient_setExtender(KSI_NetworkClient *client, const char *path, const char *user, const char *pass)
struct KSI_NetworkClient_st KSI_NetworkClient
Definition: types.h:121
int KSI_FsClient_extractPath(const char *uri, char **path)