-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from uno20001/rework_ALLINONE
#include changes and header files for multiple source files
- Loading branch information
Showing
13 changed files
with
108 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef MKTORRENT_EXPORT_H | ||
#define MKTORRENT_EXPORT_H | ||
|
||
#ifdef ALLINONE | ||
#define EXPORT static | ||
#else | ||
#define EXPORT | ||
#endif /* ALLINONE */ | ||
|
||
#endif /* MKTORRENT_EXPORT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#ifndef MKTORRENT_FTW_H | ||
#define MKTORRENT_FTW_H | ||
|
||
#include "export.h" | ||
|
||
typedef int (*file_tree_walk_cb)(const char *name, | ||
const struct stat *sbuf, void *data); | ||
|
||
#ifndef ALLINONE | ||
int file_tree_walk(const char *dirname, unsigned int nfds, | ||
EXPORT int file_tree_walk(const char *dirname, unsigned int nfds, | ||
file_tree_walk_cb callback, void *data); | ||
|
||
#endif /* ALLINONE */ | ||
|
||
#endif /* MKTORRENT_FTW_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef MKTORRENT_HASH_H | ||
#define MKTORRENT_HASH_H | ||
|
||
#include "export.h" /* EXPORT */ | ||
#include "mktorrent.h" /* struct metafile */ | ||
|
||
EXPORT unsigned char *make_hash(struct metafile *m); | ||
|
||
#endif /* MKTORRENT_HASH_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef MKTORRENT_INIT_H | ||
#define MKTORRENT_INIT_H | ||
|
||
#include "export.h" /* EXPORT */ | ||
#include "mktorrent.h" /* struct metafile */ | ||
|
||
EXPORT void init(struct metafile *m, int argc, char *argv[]); | ||
|
||
#endif /* MKTORRENT_INIT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef MKTORRENT_OUTPUT_H | ||
#define MKTORRENT_OUTPUT_H | ||
|
||
#include <stdio.h> /* FILE */ | ||
|
||
#include "export.h" /* EXPORT */ | ||
#include "mktorrent.h" /* struct metafile */ | ||
|
||
EXPORT void write_metainfo(FILE *f, struct metafile *m, | ||
unsigned char *hash_string); | ||
|
||
#endif /* MKTORRENT_OUTPUT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters