File: inbound.h

package info (click to toggle)
binkd 1.1a-115-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,544 kB
  • sloc: ansic: 22,961; makefile: 1,126; perl: 368; sh: 320
file content (36 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (4)
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
#ifndef _inbound_h
#define _inbound_h

#include "protoco2.h"

/*
 * Checks if the file already exists in our inbound. !0=ok, 0=failed.
 * Sets realname[MAXPATHLEN]
 */
int inb_test (char *filename, boff_t size, time_t t,
              char *inbound, char *realname,
              enum renamestyletype ren_style);

/*
 * Open a partial file in the inbound directory for appending.
 * Creates it if the file does not exist
 */
FILE *inb_fopen (STATE *state, BINKD_CONFIG *config);

/*
 * File is complete, rename it to it's realname. 1=ok, 0=failed.
 * Sets realname[MAXPATHLEN]
 */
int inb_done (TFILE *file, STATE *state, BINKD_CONFIG *config);

/*
 * Remove partial file
 */
int inb_reject (STATE *state, BINKD_CONFIG *config);

/*
 * Remove all partial files for remote
 */
void inb_remove_partial (STATE *state, BINKD_CONFIG *config);

#endif