File: path.h

package info (click to toggle)
robodoc 4.99.34-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,468 kB
  • ctags: 1,009
  • sloc: ansic: 14,040; sh: 3,635; makefile: 163; perl: 155
file content (34 lines) | stat: -rw-r--r-- 817 bytes parent folder | download
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
#ifndef ROBODOC_PATH_H
#define ROBODOC_PATH_H

/****s* ROBODoc/RB_Path
 * NAME
 *   RB_Path -- Path to a file
 * ATTRIBUTES
 *   * next  -- pointer to the next RB_Path structure.
 *   * parent -- the parent path (one directory up).
 *   * name  -- null terminated string with the name of the path.
 *               (Path names can be relative)
 *   * docname -- the corresponding docpath.
 * SOURCE
 */

struct RB_Path
{
    struct RB_Path     *next;
    struct RB_Path     *parent;
    char               *name;
    char               *docname;
};

/*****/

struct RB_Path     *RB_Get_RB_Path(
    char *arg_pathname );
struct RB_Path     *RB_Get_RB_Path2(
    char *arg_current_path,
    char *arg_subdirectory );
void                RB_Free_RB_Path(
    struct RB_Path *arg_rb_path );

#endif /* ROBODOC_PATH_H */