~ubuntu-branches/ubuntu/precise/crtmpserver/precise-backports

« back to all changes in this revision

Viewing changes to common/include/platform/linux/linuxplatform.h

  • Committer: Bazaar Package Importer
  • Author(s): Andriy Beregovenko, Andriy Beregovenko, Alessio Treglia
  • Date: 2011-06-06 19:41:18 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110606194118-3bmdj5tz10jp571e
[ Andriy Beregovenko ]
* Update debian changelog.
* Imported Upstream version 0.0~dfsg+svn474.
* Update patches relative to new upstream upload.

[ Alessio Treglia ]
* Add script to retrieve sources from upstream's SVN and regenerate the
  tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include "platform/baseplatform.h"
25
25
 
 
26
#ifndef PRIz
 
27
#define PRIz "z"
 
28
#endif /* PRIz */
 
29
 
26
30
//platform includes
27
31
#define __STDC_FORMAT_MACROS
28
32
#include <inttypes.h>
142
146
} select_event;
143
147
 
144
148
string format(string fmt, ...);
145
 
string vformat(string fmt, va_list args);
 
149
string vFormat(string fmt, va_list args);
146
150
void replace(string &target, string search, string replacement);
147
151
bool fileExists(string path);
148
 
string lowercase(string value);
149
 
string uppercase(string value);
150
 
string changecase(string &value, bool lowerCase);
 
152
string lowerCase(string value);
 
153
string upperCase(string value);
 
154
string changeCase(string &value, bool lowerCase);
151
155
string tagToString(uint64_t tag);
152
 
bool SetFdNonBlock(int32_t fd);
153
 
bool SetFdNoSIGPIPE(int32_t fd);
154
 
bool SetFdKeepAlive(int32_t fd);
155
 
bool SetFdNoNagle(int32_t fd);
156
 
bool SetFdReuseAddress(int32_t fd);
157
 
bool SetFdOptions(int32_t fd);
158
 
bool DeleteFile(string path);
159
 
string GetHostByName(string name);
 
156
bool setFdNonBlock(int32_t fd);
 
157
bool setFdNoSIGPIPE(int32_t fd);
 
158
bool setFdKeepAlive(int32_t fd);
 
159
bool setFdNoNagle(int32_t fd);
 
160
bool setFdReuseAddress(int32_t fd);
 
161
bool setFdOptions(int32_t fd);
 
162
bool deleteFile(string path);
 
163
string getHostByName(string name);
160
164
bool isNumeric(string value);
161
165
void split(string str, string separator, vector<string> &result);
162
166
uint64_t getTagMask(uint64_t tag);
163
167
string generateRandomString(uint32_t length);
164
 
void ltrim(string &value);
165
 
void rtrim(string &value);
 
168
void lTrim(string &value);
 
169
void rTrim(string &value);
166
170
void trim(string &value);
167
171
map<string, string> mapping(string str, string separator1, string separator2, bool trimStrings);
168
172
void splitFileName(string fileName, string &name, string &extension, char separator = '.');
169
 
double GetFileModificationDate(string path);
 
173
double getFileModificationDate(string path);
170
174
string normalizePath(string base, string file);
171
 
bool ListFolder(string root, string path, vector<string> &result);
172
 
bool MoveFile(string src, string dst);
173
 
void InstallQuitSignal(SignalFnc pQuitSignalFnc);
174
 
void InstallConfRereadSignal(SignalFnc pConfRereadSignalFnc);
 
175
bool listFolder(string path, vector<string> &result,
 
176
                bool normalizeAllPaths = true, bool includeFolders = false,
 
177
                bool recursive = true);
 
178
bool moveFile(string src, string dst);
 
179
void installQuitSignal(SignalFnc pQuitSignalFnc);
 
180
void installConfRereadSignal(SignalFnc pConfRereadSignalFnc);
175
181
 
176
182
#endif /* _LINUXPLATFORM_H */
177
183
#endif /* LINUX */