* Added initializing /tmp & /var/shared_memory to the launch_daemon. * Moved clockconfig.cpp code into the launch_daemon. * This follows systemd design; since those jobs are fixed, it doesn't matter where you maintain them. * The init jobs are BJobs, but the JobQueue is only used for that one use for now. At a later time, I intend to put the job launching in there, as well. BJob allows to represent the dependencies already.
29 lines
561 B
C++
29 lines
561 B
C++
/*
|
|
* Copyright 2015, Axel Dörfler, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef ABSTRACT_EMPTY_DIRECTORY_JOB_H
|
|
#define ABSTRACT_EMPTY_DIRECTORY_JOB_H
|
|
|
|
|
|
#include <Job.h>
|
|
|
|
|
|
class BEntry;
|
|
|
|
|
|
class AbstractEmptyDirectoryJob : public BSupportKit::BJob {
|
|
public:
|
|
AbstractEmptyDirectoryJob(const BString& name);
|
|
|
|
protected:
|
|
status_t CreateAndEmpty(const char* path) const;
|
|
|
|
private:
|
|
status_t _EmptyDirectory(BEntry& directoryEntry,
|
|
bool remove) const;
|
|
};
|
|
|
|
|
|
#endif // ABSTRACT_EMPTY_DIRECTORY_JOB_H
|