aboutsummaryrefslogtreecommitdiff
path: root/src/pager.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
commite96f9f3869c6ea5803f5759bf1737547a46be22f (patch)
treee070f699751eebad032a47f118293ef219f1e147 /src/pager.c
parent0d1af7a8c8e163250e940833d646a12852aa9e5b (diff)
downloadjwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/pager.c')
-rw-r--r--src/pager.c40
1 files changed, 30 insertions, 10 deletions
diff --git a/src/pager.c b/src/pager.c
index 6c237bd..3c88c7e 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -40,18 +40,24 @@ static void DrawPagerClient(const PagerType *pp, const ClientNode *np);
/****************************************************************************
****************************************************************************/
-void InitializePager() {
+void
+InitializePager()
+{
pagers = NULL;
}
/****************************************************************************
****************************************************************************/
-void StartupPager() {
+void
+StartupPager()
+{
}
/****************************************************************************
****************************************************************************/
-void ShutdownPager() {
+void
+ShutdownPager()
+{
PagerType *pp;
@@ -63,7 +69,9 @@ void ShutdownPager() {
/****************************************************************************
****************************************************************************/
-void DestroyPager() {
+void
+DestroyPager()
+{
PagerType *pp;
@@ -99,7 +107,9 @@ TrayComponentType *CreatePager() {
/****************************************************************************
****************************************************************************/
-void Create(TrayComponentType *cp) {
+void
+Create(TrayComponentType *cp)
+{
PagerType *pp;
@@ -120,13 +130,17 @@ void Create(TrayComponentType *cp) {
/****************************************************************************
****************************************************************************/
-void Destroy(TrayComponentType *cp) {
+void
+Destroy(TrayComponentType *cp)
+{
}
/****************************************************************************
****************************************************************************/
-void SetSize(TrayComponentType *cp, int width, int height) {
+void
+SetSize(TrayComponentType *cp, int width, int height)
+{
PagerType *pp;
@@ -165,7 +179,9 @@ void SetSize(TrayComponentType *cp, int width, int height) {
/****************************************************************************
****************************************************************************/
-void ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask) {
+void
+ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask)
+{
PagerType *pp;
@@ -193,7 +209,9 @@ void ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask) {
/****************************************************************************
****************************************************************************/
-void UpdatePager() {
+void
+UpdatePager()
+{
PagerType *pp;
ClientNode *np;
@@ -260,7 +278,9 @@ void UpdatePager() {
/****************************************************************************
****************************************************************************/
-void DrawPagerClient(const PagerType *pp, const ClientNode *np) {
+void
+DrawPagerClient(const PagerType *pp, const ClientNode *np)
+{
int x, y;
int width, height;