]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/spotlight_SPARQL_map.c
Better parsing
[netatalk.git] / etc / afpd / spotlight_SPARQL_map.c
1 /*
2   Copyright (c) 2012 Frank Lahm <franklahm@gmail.com>
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13 */
14
15 #ifdef HAVE_CONFIG_H
16 #include "config.h"
17 #endif /* HAVE_CONFIG_H */
18
19 #include <unistd.h>
20
21 #include "spotlight_SPARQL_map.h"
22
23 struct spotlight_sparql_map spotlight_sparql_map[] = {
24 /*   ssm_spotlight_attr                 ssm_type,   ssm_sparql_attr */
25     {"*",                               ssmt_fts,   "fts:match"},
26     {"kMDItemTextContent",              ssmt_fts,   "fts:match"},
27     {"kMDItemDisplayName",              ssmt_str,   "nfo:fileName"},
28     {"kMDItemContentCreationDate",      ssmt_date,  "nfo:fileCreated"},
29     {"kMDItemFSContentChangeDate",      ssmt_date,  "nfo:fileLastModified"},
30     {"kMDItemContentModificationDate",  ssmt_date,  "nfo:fileLastModified"},
31     {"kMDItemPixelWidth",               ssmt_num,   "nfo:width"},
32     {"kMDItemPixelHeight",              ssmt_num,   "nfo:height"},
33     {NULL, ssmt_str, NULL}
34 };