File: library.h

package info (click to toggle)
wmrack 1.4-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 664 kB
  • ctags: 339
  • sloc: ansic: 3,195; sh: 152; makefile: 98
file content (33 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (7)
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
/*
 * $Id: library.h,v 1.2 2003/10/01 22:44:19 xtifr Exp $
 *
 * part of wmrack
 *
 * handles the library path searchs
 *
 * Copyright (c) 1997 by Oliver Graf <ograf@fga.de>
 */
#ifndef WMRACK_LIBRARY_H_
#define WMRACK_LIBRARY_H_

#define LIB_CLOSED 0
#define LIB_READ   1
#define LIB_WRITE  2
#define LIB_APPEND 3

typedef struct
{
  FILE *f;
  char *name;
  int mode;
} LIBRARY;

char *lib_findfile(char *name, int here);
LIBRARY *lib_open(char *name, int mode);
int lib_close(LIBRARY *lib);
int lib_free(LIBRARY *lib);
int lib_reopen(LIBRARY *lib, int mode);
char *lib_gets(LIBRARY *lib, char *line, int len);
int lib_printf(LIBRARY *lib, char *format, ...);

#endif /* WMRACK_LIBRARY_H_ */