summaryrefslogtreecommitdiffstats
path: root/backend/devicelock.h
blob: 1cfe0c0dd1e38890b04569066d6556ea3762715d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef BACKEND_DEVICELOCK_H_
#define BACKEND_DEVICELOCK_H_

#include "probe.h"


struct devicelock {
	const char *name;

	void (*destroy)(struct devicelock *s);
	void (*event)(struct devicelock *s);
};

struct devicelock * devicelock_probe();
void devicelock_destroy(struct devicelock *s);

void devicelock_init(struct devicelock *s, const char *name);

DECLARE_PROBES(devicelock);
#define DEVICELOCK_PROBE(_name, _func)	DEFINE_PROBE(devicelock, _name, _func)

#endif /* BACKEND_DEVICELOCK_H_ */
bues.ch cgit interface