File: rglob.h

package info (click to toggle)
yafc 1.1.1.dfsg.1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,248 kB
  • ctags: 1,679
  • sloc: ansic: 19,338; sh: 10,365; makefile: 155; perl: 38; ruby: 33
file content (34 lines) | stat: -rw-r--r-- 973 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
/* $Id: rglob.h,v 1.4 2004/05/20 11:10:52 mhe Exp $
 *
 * rglob.h -- remote glob functions
 *
 * Yet Another FTP Client
 * Copyright (C) 1998-2001, Martin Hedenfalk <mhe@stacken.kth.se>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. See COPYING for more details.
 */

#ifndef _rglob_h_included
#define _rglob_h_included

#include "syshdr.h"
#include "rfile.h"
#include "linklist.h"

#define NODOTDIRS rglob_exclude_dotdirs

typedef bool (*rglobfunc)(rfile *f);

list *rglob_create(void);
void rglob_destroy(list *gl);

bool rglob_exclude_dotdirs(rfile *f);
int rglob_glob(list *gl, const char *mask, bool cpifnomatch,
			   bool ignore_multiples, rglobfunc exclude_func);
unsigned long long rglob_size(list *gl);
unsigned long long rglob_numdirs(list *gl);

#endif