aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-12-11 13:31:10 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-12-11 13:31:10 +0200
commit9cfa003658ff1df27284e409cbeda705496a808a (patch)
tree3a38e61ca1f831d602a8cbf9e3f1ee79d6f549c3
parentbc30bd9c1be76432ae0b6dcae6f61a9ee323852b (diff)
downloadpies-9cfa003658ff1df27284e409cbeda705496a808a.tar.gz
pies-9cfa003658ff1df27284e409cbeda705496a808a.tar.bz2
New meta-variable for notifications.
* src/progman.c (notify): New meta-var "instance".
-rw-r--r--src/progman.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/progman.c b/src/progman.c
index e73a611..ffaf37b 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -1961,6 +1961,8 @@ notify (const char *tag, int status, struct action *act)
{ "retcode", NULL },
#define PROGRAM_NAME_IDX 6
{ "program-name", NULL },
+#define INSTANCE_IDX 7
+ { "instance", NULL },
{ NULL }
};
@@ -1968,6 +1970,7 @@ notify (const char *tag, int status, struct action *act)
char buf[INT_BUFSIZE_BOUND (uintmax_t)];
mdef[COMPONENT_IDX].value = (char*) tag;
+ mdef[INSTANCE_IDX].value = (char*) tag;
if (WIFEXITED (status))
{
/* TRANSLATORS: The subject of this statement is 'component' */

Return to:

Send suggestions and report system problems to the System administrator.