Mercurial > trustbridge
comparison cinst/mozilla.c @ 232:774e944c395b
Cleand up doku.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 28 Mar 2014 10:50:14 +0100 |
parents | c342b93c5bd1 |
children | 0c4d65a7cd14 |
comparison
equal
deleted
inserted
replaced
231:c342b93c5bd1 | 232:774e944c395b |
---|---|
28 * Success messages are written to stdout. Errors to stderr. For logging | 28 * Success messages are written to stdout. Errors to stderr. For logging |
29 * purposes each installation / removal of a certificate will be reported | 29 * purposes each installation / removal of a certificate will be reported |
30 * with the profile name that it modified. | 30 * with the profile name that it modified. |
31 * | 31 * |
32 */ | 32 */ |
33 | |
34 /* @brief IniParser for mozilla profiles.ini | |
35 * | |
36 * Parse data to find values formed in | |
37 * | |
38 * [Profile99] | |
39 * IsRelative=1 | |
40 * Path=Profiles/fooo.bar | |
41 * | |
42 * or | |
43 * [Profile0] | |
44 * IsRelative=0 | |
45 * Path=c:\foo\bar\baz | |
46 * | |
47 * Mozilla also accepts the ini file on Windows even if it is UTF-16 | |
48 * encoded. | |
49 * */ | |
50 | 33 |
51 #include <dirent.h> | 34 #include <dirent.h> |
52 #include <cert.h> | 35 #include <cert.h> |
53 #include <certt.h> | 36 #include <certt.h> |
54 #include <nss.h> | 37 #include <nss.h> |
120 } | 103 } |
121 | 104 |
122 /** | 105 /** |
123 * @brief Get a list of all mozilla profile directories | 106 * @brief Get a list of all mozilla profile directories |
124 * | 107 * |
125 * Read the profiles.ini and extract all profile paths from that. | 108 * Parse the profiles.ini and extract all profile paths from that. |
109 * The expected data is in the form: | |
110 * | |
111 * [Profile99] | |
112 * IsRelative=1 | |
113 * Path=Example/fooo.bar | |
114 * | |
115 * or | |
116 * [Profile0] | |
117 * IsRelative=0 | |
118 * Path=c:\foo\bar\baz | |
119 * | |
120 * Mozilla also accepts the ini file on Windows even if it is UTF-16 | |
121 * encoded but never writes UTF-16 on its own. So currently we ignore | |
122 * this special case. | |
126 * | 123 * |
127 * @param[in] inifile_name path of the profile.ini to read. | 124 * @param[in] inifile_name path of the profile.ini to read. |
128 * @return NULL terminated array of strings containing containing the | 125 * @return NULL terminated array of strings containing containing the |
129 * absolute path of the profile directories. The array needs to | 126 * absolute path of the profile directories. The array needs to |
130 * be freed by the caller. | 127 * be freed by the caller. |