xref: /aoo4110/main/sal/osl/unx/file_url.h (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef INCLUDED_FILE_URL_H
25 #define INCLUDED_FILE_URL_H
26 
27 #include "osl/file.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 /**************************************************
35  * osl_getSystemPathFromFileURL_Ex
36  *************************************************/
37 
38 #define FURL_ALLOW_RELATIVE sal_True
39 #define FURL_DENY_RELATIVE  sal_False
40 
41 oslFileError osl_getSystemPathFromFileURL_Ex(rtl_uString *ustrFileURL, rtl_uString **pustrSystemPath, sal_Bool bAllowRelative);
42 
43 /**************************************************
44  * FileURLToPath
45  *************************************************/
46 
47 oslFileError FileURLToPath(char * buffer, size_t bufLen, rtl_uString* ustrFileURL);
48 
49 /***************************************************
50  * UnicodeToText
51  **************************************************/
52 
53 int UnicodeToText(char * buffer, size_t bufLen, const sal_Unicode * uniText, sal_Int32 uniTextLen);
54 
55 /***************************************************
56  * TextToUniCode
57  **************************************************/
58 
59 int TextToUnicode(const char* text, size_t text_buffer_size, sal_Unicode* unic_text, sal_Int32 unic_text_buffer_size);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* #define INCLUDED_FILE_URL_H */
66