root/libutil/pathconvert.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2005, 2006, 2010 Tama Communications Corporation
   3  *
   4  * This file is part of GNU GLOBAL.
   5  *
   6  * This program is free software: you can redistribute it and/or modify
   7  * it under the terms of the GNU General Public License as published by
   8  * the Free Software Foundation, either version 3 of the License, or
   9  * (at your option) any later version.
  10  * 
  11  * This program is distributed in the hope that it will be useful,
  12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  * GNU General Public License for more details.
  15  * 
  16  * You should have received a copy of the GNU General Public License
  17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18  */
  19 #ifndef _PATHCONVERT_H_
  20 #define _PATHCONVERT_H_
  21 
  22 #include <stdio.h>
  23 #include "gparam.h"
  24 #include "strbuf.h"
  25 
  26 typedef struct {
  27         FILE *op;
  28         int type;               /**< #PATH_ABSOLUTE, #PATH_RELATIVE */
  29         int format;             /**< defined in @FILE{format.h} */
  30         STRBUF *abspath;
  31         char basedir[MAXPATHLEN];
  32         int start_point;
  33         int db;                 /**< for @NAME{gtags-cscope} */
  34 
  35 } CONVERT;
  36 
  37 void set_encode_chars(const unsigned char *);
  38 void set_print0(void);
  39 char *decode_path(const char *);
  40 CONVERT *convert_open(int, int, const char *, const char *, const char *, FILE *, int);
  41 void convert_put(CONVERT *, const char *);
  42 void convert_put_path(CONVERT *, const char *);
  43 void convert_put_using(CONVERT *, const char *, const char *, int, const char *, const char *);
  44 void convert_close(CONVERT *cv);
  45 
  46 #endif /* ! _PATHCONVERT_H_ */

/* [previous][next][first][last][top][bottom][index][help] */