~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/include/vixOpenSource.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-30 12:56:49 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730125649-97sfj5li8axiseoo
Tags: 2009.07.22-179896-2
* Temporarily building without dumbnet, the recently uploaded
  new dumbnet upstream version broke down (Closes: #539006).
* Using more common name to store local debian additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
417
417
extern const char *VixDebug_GetFileBaseName(const char *path);
418
418
extern void VixAssert(const char *cond, const char *file, int lineNum);
419
419
 
 
420
extern VixError VixLogError(VixError err, const char *function, int line,
 
421
                const char *fileName, unsigned long threadId, const char *fmt, ...)
 
422
                PRINTF_DECL(6, 7);
 
423
 
 
424
 
420
425
/*
421
426
 * preference name for client and vmx
422
427
 */
468
473
           __FUNCTION__, debugString);                               \
469
474
       free(debugString); }
470
475
 
 
476
// If no MSG is given, a description of err is suplemented.
 
477
#define VIX_ERROR(err) (VIX_ERROR_MSG(err, NULL))
 
478
#define VIX_ERROR_MSG(err, ...) (VixLogError(err, __FUNCTION__, __LINE__, \
 
479
      VixDebug_GetFileBaseName(__FILE__), \
 
480
      (unsigned long)Util_GetCurrentThreadId(), __VA_ARGS__))
 
481
 
471
482
#endif   // VIX_HIDE_FROM_JAVA
472
483
 
473
484
#ifdef __cplusplus