mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 23:14:20 +08:00
refactored some common platform dependent stuff into a new
library: platform. also removed test.cpp.
This commit is contained in:
29
platform/CUnixPlatform.h
Normal file
29
platform/CUnixPlatform.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef CUNIXPLATFORM_H
|
||||
#define CUNIXPLATFORM_H
|
||||
|
||||
#include "IPlatform.h"
|
||||
|
||||
class CUnixPlatform : public IPlatform {
|
||||
public:
|
||||
CUnixPlatform();
|
||||
virtual ~CUnixPlatform();
|
||||
|
||||
// IPlatform overrides
|
||||
virtual bool installDaemon(/* FIXME */);
|
||||
virtual bool uninstallDaemon(/* FIXME */);
|
||||
virtual bool daemonize(const char* name);
|
||||
virtual const char* getBasename(const char* pathname) const;
|
||||
virtual CString getUserDirectory() const;
|
||||
virtual CString getSystemDirectory() const;
|
||||
virtual CString addPathComponent(
|
||||
const CString& prefix,
|
||||
const CString& suffix) const;
|
||||
|
||||
protected:
|
||||
virtual void setDaemonLogger(const char* name);
|
||||
|
||||
private:
|
||||
static void deamonLogger(int, const char*);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user