axutil_base64_binary.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef AXUTIL_BASE64_BINARY_H
00019 #define AXUTIL_BASE64_BINARY_H
00020 
00021 #include <axutil_base64.h>
00022 #include <axutil_utils_defines.h>
00023 #include <axutil_env.h>
00024 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00042     typedef struct axutil_base64_binary axutil_base64_binary_t;
00043 
00049     AXIS2_EXTERN axutil_base64_binary_t* AXIS2_CALL
00050     axutil_base64_binary_create(
00051         const axutil_env_t *env);
00052 
00059     AXIS2_EXTERN axutil_base64_binary_t* AXIS2_CALL
00060     axutil_base64_binary_create_with_plain_binary(
00061         const axutil_env_t *env,
00062         const unsigned char *plain_binary,
00063         int plain_binary_len);
00064 
00071     AXIS2_EXTERN axutil_base64_binary_t* AXIS2_CALL
00072     axutil_base64_binary_create_with_encoded_binary(
00073         const axutil_env_t *env,
00074         const char *encoded_binary);
00075 
00082     AXIS2_EXTERN void AXIS2_CALL 
00083     axutil_base64_binary_free(axutil_base64_binary_t *base64_binary,
00084         const axutil_env_t *env);
00085 
00094     AXIS2_EXTERN axis2_status_t AXIS2_CALL 
00095     axutil_base64_binary_set_plain_binary(axutil_base64_binary_t *base64_binary,
00096         const axutil_env_t *env,
00097         const unsigned char* plain_binary,
00098         int plain_binary_len);
00099 
00108     AXIS2_EXTERN unsigned char* AXIS2_CALL 
00109     axutil_base64_binary_get_plain_binary(axutil_base64_binary_t *base64_binary,
00110         const axutil_env_t *env,
00111         int* plain_binary_len);
00112 
00120     AXIS2_EXTERN axis2_status_t AXIS2_CALL 
00121     axutil_base64_binary_set_encoded_binary(axutil_base64_binary_t *base64_binary,
00122         const axutil_env_t *env,
00123         const char* encoded_binary);
00124 
00131     AXIS2_EXTERN char* AXIS2_CALL 
00132     axutil_base64_binary_get_encoded_binary(axutil_base64_binary_t *base64_binary,
00133         const axutil_env_t *env);
00134 
00141     AXIS2_EXTERN int AXIS2_CALL 
00142     axutil_base64_binary_get_encoded_binary_len(axutil_base64_binary_t *base64_binary,
00143         const axutil_env_t *env);
00144 
00151     AXIS2_EXTERN int AXIS2_CALL 
00152     axutil_base64_binary_get_decoded_binary_len(axutil_base64_binary_t *base64_binary,
00153         const axutil_env_t *env);
00154 
00155 #ifdef __cplusplus
00156 }
00157 #endif
00158 
00159 #endif /* AXIS2_BASE64_BINARY_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6