ohcount
sourcefile.h
Go to the documentation of this file.
1 // sourcefile.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2 // See COPYING for license information.
3 
4 #ifndef OHCOUNT_SOURCEFILE_H
5 #define OHCOUNT_SOURCEFILE_H
6 
7 #include "loc.h"
8 #include "parsed_language.h"
9 
16 SourceFile *ohcount_sourcefile_new(const char *filepath);
17 
26  const char *diskpath);
27 
35  const char *contents);
36 
44 
51 
59  const char *language);
60 
67 const char *ohcount_sourcefile_get_language(SourceFile *sourcefile);
68 
74 void ohcount_sourcefile_parse(SourceFile *sourcefile);
75 
82  *sourcefile);
83 
92  void (*callback) (const char *,
93  const char *, int,
94  int, void *),
95  void *userdata);
96 
105  void (*callback)
106  (const char *,
107  const char *, int,
108  int, void *),
109  void *userdata);
110 
119 
129 
140 
154  const char *language,
155  SourceFile *to);
156 
165  char **filenames);
166 
176 char **ohcount_sourcefile_get_filenames(SourceFile *sourcefile);
177 
182 void ohcount_sourcefile_free(SourceFile *sourcefile);
183 
191 
199  const char *filepath);
200 
208  const char *directory);
209 
216 
222 
223 #endif