devicelock.h 497 B

1234567891011121314151617181920212223
  1. #ifndef BACKEND_DEVICELOCK_H_
  2. #define BACKEND_DEVICELOCK_H_
  3. #include "probe.h"
  4. struct devicelock {
  5. const char *name;
  6. void (*destroy)(struct devicelock *s);
  7. void (*event)(struct devicelock *s);
  8. };
  9. struct devicelock * devicelock_probe();
  10. void devicelock_destroy(struct devicelock *s);
  11. void devicelock_init(struct devicelock *s, const char *name);
  12. DECLARE_PROBES(devicelock);
  13. #define DEVICELOCK_PROBE(_name, _func) DEFINE_PROBE(devicelock, _name, _func)
  14. #endif /* BACKEND_DEVICELOCK_H_ */