btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / SignalInfo.h
blobffd636171bc1c8978fbe3713b60549981e1ba18b
1 /*
2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SIGNAL_INFO_H
6 #define SIGNAL_INFO_H
8 #include <signal.h>
10 #include "Types.h"
13 class SignalInfo {
14 public:
15 SignalInfo();
16 SignalInfo(const SignalInfo& other);
17 SignalInfo(int signal,
18 const struct sigaction& handler,
19 bool deadly);
21 void SetTo(int signal,
22 const struct sigaction& handler,
23 bool deadly);
25 int Signal() const { return fSignal; }
26 const struct sigaction& Handler() const { return fHandler; }
27 bool Deadly() const { return fDeadly; }
28 private:
29 int fSignal;
30 struct sigaction fHandler;
31 bool fDeadly;
35 #endif // SIGNAL_INFO_H