~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/include/strutil.h

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-06-20 15:59:51 UTC
  • mfrom: (1.4.8)
  • Revision ID: package-import@ubuntu.com-20120620155951-6rupmpb0f70b52zr
Tags: 2012.05.21-724730-0ubuntu1
* Merging upstream version 2012.05.21-724730.
  - Fixes building against the current Quantal kernel. (LP: #1000344)
  - Fixes Quantal installation issues. (LP: #1019031)

* Sync with Debian
  - Updating to debhelper version 9.
  - Updating to standards version 3.9.3.
  - Updating copyright file machine-readable format version 1.0.
  - Building without multiarch paths for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#define STRUTIL_H
28
28
 
29
29
#include <stdarg.h>
30
 
 
31
 
#include "fileIO.h"
32
 
#include "dynbuf.h"
33
 
 
34
 
char * StrUtil_GetNextToken(unsigned int *index, const char *str,
35
 
                            const char *delimiters);
 
30
#include "vm_basic_types.h"
 
31
 
 
32
struct DynBuf;
 
33
 
 
34
char *StrUtil_GetNextToken(unsigned int *index, const char *str,
 
35
                           const char *delimiters);
36
36
Bool StrUtil_GetNextIntToken(int32 *out, unsigned int *index, const char *str,
37
37
                             const char *delimiters);
38
38
Bool StrUtil_GetNextUintToken(uint32 *out, unsigned int *index, const char *str,
48
48
Bool StrUtil_StrToDouble(double *out, const char *str);
49
49
Bool StrUtil_CapacityToSectorType(SectorType *out, const char *str,
50
50
                                  unsigned int bytes);
51
 
char * StrUtil_FormatSizeInBytesUnlocalized(uint64 size);
 
51
char *StrUtil_FormatSizeInBytesUnlocalized(uint64 size);
52
52
 
53
53
size_t StrUtil_GetLongestLineLength(const char *buf, size_t bufLength);
54
54
 
56
56
Bool StrUtil_CaselessStartsWith(const char *s, const char *prefix);
57
57
Bool StrUtil_EndsWith(const char *s, const char *suffix);
58
58
 
59
 
Bool StrUtil_VDynBufPrintf(DynBuf *b, const char *fmt, va_list args);
60
 
Bool StrUtil_DynBufPrintf(DynBuf *b, const char *fmt, ...);
61
 
void StrUtil_SafeDynBufPrintf(DynBuf *b, const char *fmt, ...);
 
59
Bool StrUtil_VDynBufPrintf(struct DynBuf *b, const char *fmt, va_list args);
 
60
Bool StrUtil_DynBufPrintf(struct DynBuf *b, const char *fmt, ...);
 
61
void StrUtil_SafeDynBufPrintf(struct DynBuf *b, const char *fmt, ...);
62
62
 
63
63
#endif /* STRUTIL_H */