Keep track of startup notifications in a TAILQ, save workspace

This commit is contained in:
Michael Stapelberg
2011-10-10 12:47:56 +01:00
parent f4f4d782bb
commit 499d89bdb0
2 changed files with 44 additions and 4 deletions

View File

@ -138,6 +138,20 @@ struct Ignore_Event {
SLIST_ENTRY(Ignore_Event) ignore_events;
};
/**
* Stores internal information about a startup sequence, like the workspace it
* was initiated on.
*
*/
struct Startup_Sequence {
/** startup ID for this sequence, generated by libstartup-notification */
char *id;
/** workspace on which this startup was initiated */
char *workspace;
TAILQ_ENTRY(Startup_Sequence) sequences;
};
/**
* Regular expression wrapper. It contains the pattern itself as a string (like
* ^foo[0-9]$) as well as a pointer to the compiled PCRE expression and the