This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16.
View the commit online.
commit e0cd65cc10960813f04b35cc633ff6335a05d397
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Mar 15 15:59:03 2024 +0100
session: Rename some macros
---
src/main.c | 4 ++--
src/session.c | 8 ++++----
src/session.h | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/main.c b/src/main.c
index 63230f36..b5428211 100644
--- a/src/main.c
+++ b/src/main.c
@@ -472,9 +472,9 @@ static void
RunInitPrograms(void)
{
if (Mode.wm.session_start)
- SessionHelper(ESESSION_INIT);
+ SessionHelper(ESESSHLP_INIT);
- SessionHelper(ESESSION_START);
+ SessionHelper(ESESSHLP_START);
if (Mode.firsttime && Mode.wm.master)
{
diff --git a/src/session.c b/src/session.c
index 72004ec2..803a4333 100644
--- a/src/session.c
+++ b/src/session.c
@@ -450,7 +450,7 @@ doSMExit(int mode, const char *params)
#endif
if (mode != EEXIT_THEME && mode != EEXIT_RESTART)
- SessionHelper(ESESSION_STOP);
+ SessionHelper(ESESSHLP_STOP);
LangExit();
@@ -743,15 +743,15 @@ SessionHelper(int when)
{
switch (when)
{
- case ESESSION_INIT:
+ case ESESSHLP_INIT:
if (Conf.session.enable_script && Conf.session.script)
_SessionRunProg(Conf.session.script, "init");
break;
- case ESESSION_START:
+ case ESESSHLP_START:
if (Conf.session.enable_script && Conf.session.script)
_SessionRunProg(Conf.session.script, "start");
break;
- case ESESSION_STOP:
+ case ESESSHLP_STOP:
if (Conf.session.enable_script && Conf.session.script)
_SessionRunProg(Conf.session.script, "stop");
break;
diff --git a/src/session.h b/src/session.h
index 7f145428..c666cffd 100644
--- a/src/session.h
+++ b/src/session.h
@@ -33,9 +33,9 @@
#define EEXIT_THEME 5
#define EEXIT_EXEC 6
-#define ESESSION_INIT 0
-#define ESESSION_START 1
-#define ESESSION_STOP 2
+#define ESESSHLP_INIT 0
+#define ESESSHLP_START 1
+#define ESESSHLP_STOP 2
void SessionInit(void);
void SessionExit(int mode, const char *params);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.