|
|
@@ -48,6 +48,8 @@
|
|
|
|
|
|
static struct varbuf fn, newfn;
|
|
|
|
|
|
+static const struct trigdefmeths *trigdef;
|
|
|
+
|
|
|
%}
|
|
|
|
|
|
%%
|
|
|
@@ -88,7 +90,6 @@ static int lock_fd = -1;
|
|
|
static FILE *old_deferred;
|
|
|
|
|
|
FILE *trig_new_deferred;
|
|
|
-const struct trigdefmeths *trigdef;
|
|
|
|
|
|
static void
|
|
|
constructfn(struct varbuf *vb, const char *admindir, const char *tail)
|
|
|
@@ -171,6 +172,12 @@ trigdef_update_start(enum trigdef_updateflags uf, const char *admindir)
|
|
|
return 2;
|
|
|
}
|
|
|
|
|
|
+void
|
|
|
+trigdef_set_methods(const struct trigdefmeths *methods)
|
|
|
+{
|
|
|
+ trigdef = methods;
|
|
|
+}
|
|
|
+
|
|
|
void
|
|
|
trigdef_process_done(void)
|
|
|
{
|