dpkg 1.21.11
trigdeferred.h
Go to the documentation of this file.
1/*
2 * libdpkg - Debian packaging suite library routines
3 * trigdeferred.h - parsing of triggers/Unincorp (was …/Deferred)
4 *
5 * Copyright © 2007 Canonical, Ltd.
6 * written by Ian Jackson <ijackson@chiark.greenend.org.uk>
7 * Copyright © 2008-2014 Guillem Jover <guillem@debian.org>
8 *
9 * This is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 */
22
23#ifndef LIBDPKG_TRIGDEFERRED_H
24#define LIBDPKG_TRIGDEFERRED_H
25
26#include <dpkg/macros.h>
27
29
43};
44
51};
52
54 void (*trig_begin)(const char *trig);
55 void (*package)(const char *awname);
56 void (*trig_end)(void);
57};
58
59void trigdef_set_methods(const struct trigdefmeths *methods);
60
62void trigdef_update_printf(const char *format, ...) DPKG_ATTR_PRINTF(1);
63int trigdef_parse(void);
64void trigdef_process_done(void);
65
69
70#endif /* LIBDPKG_TRIGDEFERRED_H */
#define DPKG_BEGIN_DECLS
Definition: macros.h:86
#define DPKG_ATTR_PRINTF(n)
Definition: macros.h:56
#define DPKG_END_DECLS
Definition: macros.h:87
#define DPKG_BIT(n)
Return the integer value of bit n.
Definition: macros.h:125
void trigdef_process_done(void)
Definition: trigdeferred.c:250
void trigdef_set_methods(const struct trigdefmeths *methods)
Definition: trigdeferred.c:147
enum trigdef_update_status trigdef_update_start(enum trigdef_update_flags uf)
Start processing of the triggers deferred file.
Definition: trigdeferred.c:74
trigdef_update_status
Definition: trigdeferred.h:45
trigdef_update_flags
Definition: trigdeferred.h:36
int trigdef_parse(void)
Definition: trigdeferred.c:184
void trigdef_update_printf(const char *format,...) DPKG_ATTR_PRINTF(1)
Definition: trigdeferred.c:153
@ TDUS_ERROR_NO_DEFERRED
Definition: trigdeferred.h:48
@ TDUS_NO_DEFERRED
Definition: trigdeferred.h:49
@ TDUS_OK
Definition: trigdeferred.h:50
@ TDUS_ERROR_EMPTY_DEFERRED
Definition: trigdeferred.h:47
@ TDUS_ERROR_NO_DIR
Definition: trigdeferred.h:46
@ TDUF_WRITE_IF_EMPTY
Should not be set unless TDUF_WRITE is.
Definition: trigdeferred.h:41
@ TDUF_NO_LOCK
Definition: trigdeferred.h:39
@ TDUF_NO_LOCK_OK
Definition: trigdeferred.h:37
@ TDUF_WRITE
Definition: trigdeferred.h:38
@ TDUF_WRITE_IF_ENOENT
Definition: trigdeferred.h:42
Definition: trigdeferred.h:53
void(* trig_end)(void)
Definition: trigdeferred.h:56
void(* trig_begin)(const char *trig)
Definition: trigdeferred.h:54
void(* package)(const char *awname)
Definition: trigdeferred.h:55