diff options
| author | Henrik Rydberg <rydberg@alnilam.(none)> | 2010-02-01 22:03:33 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@alnilam.(none)> | 2010-02-01 22:03:33 +0100 |
| commit | f0b1dbdc00bda57c62199cbdc44acbadbb1121b0 (patch) | |
| tree | 5234055bf794c28662b139c22e153f7a720a37bc /src/state.h | |
| parent | 30869603dc5d36ad2d82cff82900c7e05a4b35c1 (diff) | |
janitor: stick to kernel-style formattingalpha-1
With this commit, the whole code base complies with the
kernel format style, and patches can be checked against
the kernel-provided ./scripts/checkpatch.pl
Diffstat (limited to 'src/state.h')
| -rw-r--r-- | src/state.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/state.h b/src/state.h index d8e096a..340803a 100644 --- a/src/state.h +++ b/src/state.h | |||
| @@ -25,34 +25,26 @@ | |||
| 25 | #include "capabilities.h" | 25 | #include "capabilities.h" |
| 26 | #include "hwdata.h" | 26 | #include "hwdata.h" |
| 27 | 27 | ||
| 28 | //////////////////////////////////////////////////////// | ||
| 29 | |||
| 30 | /* zero id means not mapped (not touching) */ | 28 | /* zero id means not mapped (not touching) */ |
| 31 | struct FingerState { | 29 | struct FingerState { |
| 32 | struct FingerData hw; | 30 | struct FingerData hw; |
| 33 | int id; | 31 | int id; |
| 34 | }; | 32 | }; |
| 35 | 33 | ||
| 36 | //////////////////////////////////////////////////////// | ||
| 37 | |||
| 38 | struct State { | 34 | struct State { |
| 39 | struct FingerState finger[DIM_FINGER]; | 35 | struct FingerState finger[DIM_FINGER]; |
| 40 | button_t button; | 36 | unsigned button; |
| 41 | int nfinger; | 37 | int nfinger; |
| 42 | int lastid; | 38 | int lastid; |
| 43 | }; | 39 | }; |
| 44 | 40 | ||
| 45 | //////////////////////////////////////////////////////// | ||
| 46 | |||
| 47 | void init_state(struct State *s); | 41 | void init_state(struct State *s); |
| 48 | void modify_state(struct State *s, | 42 | void modify_state(struct State *s, |
| 49 | const struct HWData* hw, | 43 | const struct HWData *hw, |
| 50 | const struct Capabilities* caps); | 44 | const struct Capabilities *caps); |
| 51 | void output_state(const struct State *s); | 45 | void output_state(const struct State *s); |
| 52 | 46 | ||
| 53 | const struct FingerState *find_finger(const struct State *s, int id); | 47 | const struct FingerState *find_finger(const struct State *s, int id); |
| 54 | int count_fingers(const struct State *s); | 48 | int count_fingers(const struct State *s); |
| 55 | 49 | ||
| 56 | //////////////////////////////////////////////////////// | ||
| 57 | |||
| 58 | #endif | 50 | #endif |
