Skip to content

Commit

Permalink
Removed defunct definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwatts15 committed Feb 20, 2015
1 parent 1915b4c commit f80f742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 deletions.
33 changes: 4 additions & 29 deletions params.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,15 @@

#define DB FSDATA->db
#define STAGE FSDATA->stage
#define SEARCHES FSDATA->search_results

/* Default permissions for directories */
#define DIR_PERMS 0755 | S_IFDIR

#define LEADER ":"
/* This handle alone denotes a file that can be written to to make a query on
the TagDB. If anything follows the handle, everything after is interpreted
as the query itself and the type will be dictated by the type of query. */
#define LISTEN_FH LEADER "Q"
/* This handle is for reading results written to the listen file handle they
are given in binary format */
#define QREAD_PREFIX LEADER "R"
/* Handle for integrated file search */
#define SEARCH_PREFIX LEADER "S"
/* This handle alone denotes a directory which, if a file is moved there will,
* remove all of the tags preceding it in the list. Listing this contents of
* directory will list the files which do NOT have the preceding tags along
* with the union of those files tags as per usual. If anything follows the
* handle, it will be interpreted as a single tag name and the file will
* resolve to a directory the contents of which contain all files in the
* preceding path, but excluding the tag following the handle. */
#define UNTAG_FH LEADER "X"
/* The prefix for xattr presentation of tags */
#define XATTR_PREFIX "user.tagfs."

/* This handle provides a file (or directory, haven't decided) that gives some
* information about the tag or file that follows it. Only names in the same
* directory will be resolved, to prevent name conflicts. Symbolic directory
* names . and .. are read as well. */
#define INFO_FH LEADER "I"

/* If any file begins with the leader, it will be read in as normal so long as
* the leader does not contiune into one of the above handles */

/* For lex.pl to know not to print out a character buffer */
/* For marco.pl to know not to put a %s in the format for a function
* prototype log */
#define __DNP__
#include "version.h"
#endif /* PARAMS_H */
Expand Down
3 changes: 0 additions & 3 deletions tagfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ struct tagfs_state
char *log_file;
TagDB *db;
Stage *stage;
/* The result from the last search performed
a list of files */
SearchList *search_results;
};

gboolean tagfs_is_consistent ();
Expand Down

0 comments on commit f80f742

Please sign in to comment.