/usr/include/dovecot/sieve/program-client-private.h is in dovecot-dev 1:2.2.22-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /* Copyright (c) 2002-2016 Pigeonhole authors, see the included COPYING file
*/
#ifndef __PROGRAM_CLIENT_PRIVATE_H
#define __PROGRAM_CLIENT_PRIVATE_H
#include "program-client.h"
enum program_client_error {
PROGRAM_CLIENT_ERROR_NONE,
PROGRAM_CLIENT_ERROR_CONNECT_TIMEOUT,
PROGRAM_CLIENT_ERROR_RUN_TIMEOUT,
PROGRAM_CLIENT_ERROR_IO,
PROGRAM_CLIENT_ERROR_UNKNOWN
};
struct program_client_extra_fd {
struct program_client *pclient;
int child_fd, parent_fd;
struct istream *input;
struct io *io;
program_client_fd_callback_t *callback;
void *context;
};
struct program_client {
pool_t pool;
struct program_client_settings set;
char *path;
const char **args;
ARRAY_TYPE(const_string) envs;
int fd_in, fd_out;
struct io *io;
struct ioloop *ioloop;
struct timeout *to;
time_t start_time;
struct istream *input, *program_input, *seekable_output;
struct ostream *output, *program_output;
char *temp_prefix;
ARRAY(struct program_client_extra_fd) extra_fds;
enum program_client_error error;
int exit_code;
int (*connect)(struct program_client *pclient);
int (*close_output)(struct program_client *pclient);
int (*disconnect)(struct program_client *pclient, bool force);
void (*failure)
(struct program_client *pclient, enum program_client_error error);
unsigned int debug:1;
unsigned int disconnected:1;
unsigned int output_seekable:1;
};
void program_client_init
(struct program_client *pclient, pool_t pool, const char *path,
const char *const *args, const struct program_client_settings *set);
void program_client_init_streams(struct program_client *pclient);
int program_client_connected(struct program_client *pclient);
void program_client_fail
(struct program_client *pclient, enum program_client_error error);
#endif
|