File: cleanup.h

package info (click to toggle)
trickle 1.07-10
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,664 kB
  • ctags: 539
  • sloc: sh: 8,307; ansic: 4,722; makefile: 77
file content (25 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (8)
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
/*
 * cleanup.h
 *
 * Copyright (c) 2002 Marius Aamodt Eriksen <marius@monkey.org>
 * All rights reserved.
 *
 * $Id: cleanup.h,v 1.1 2003/03/06 04:11:39 marius Exp $
 */

#ifndef TRICKLE_CLEANUP_H
#define TRICKLE_CLEANUP_H

typedef struct cleanup cleanup_t;

cleanup_t *cleanup_new(void);
cleanup_t *cleanup_free(cleanup_t *);
int        cleanup_add(cleanup_t *, void (*)(void *), void *);
int        cleanup_remove(cleanup_t *, void (*)(void *), void *);
void       cleanup_cleanup(cleanup_t *);

/* Utility */
void       cleanupcb_close(void *);
void       cleanupcb_unlink(void *);

#endif /* TRICKLE_CLEANUP_H */