view src/master/dup2-array.h @ 22711:25d4771ad0fd

lib-storage: mailbox_list_index - indentation cleanup
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 14 Dec 2017 02:10:27 +0200
parents e4eb71ae8e96
children
line wrap: on
line source

#ifndef DUP2_ARRAY_H
#define DUP2_ARRAY_H

struct dup2 {
	int fd_src, fd_dest;
};
ARRAY_DEFINE_TYPE(dup2, struct dup2);

void dup2_append(ARRAY_TYPE(dup2) *dups, int fd_src, int fd_dest);

int dup2_array(ARRAY_TYPE(dup2) *dups);

#endif