X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsubst.c;h=3231c931e086dfd5157eaf35f6b95b107ef81612;hb=1fca377a6dd854637e3d63d23c7d0cd0d48c3451;hp=547aa945175c1fff38caeca33dff7f1a219ca482;hpb=79996ff8f68d2affbcaa539be213c3158af8c000;p=citadel.git diff --git a/webcit/subst.c b/webcit/subst.c index 547aa9451..3231c931e 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -43,6 +43,20 @@ WCTemplputParams NoCtx; #define SV_SUBTEMPL 5 #define SV_PREEVALUATED 6 + +/* + * \brief Dynamic content for variable substitution in templates + */ +typedef struct _wcsubst { + ContextFilter Filter; + int wcs_type; /* which type of Substitution are we */ + char wcs_key[32]; /* copy of our hashkey for debugging */ + StrBuf *wcs_value; /* if we're a string, keep it here */ + long lvalue; /* type long? keep data here */ + WCHandlerFunc wcs_function; /* funcion hook ???*/ +} wcsubst; + + typedef struct _WCTemplate { StrBuf *Data; StrBuf *FileName;