Hallo,
ich habe in einem Quellcode folgendes gefunden,
und bin nun auf der Suche nach Informationen, wie sich speziell das prop_names[] array nennt,
oder wo ich mehr informationen über das Zuweisen an ein enum erhalte.
Habe das in dieser Form noch nicht gesehen.
Danke für Informationsmaterial!
Gruß Lars
typedef struct {
const char *nspace, *name;
} ne_propname;
enum {
NAME = 0,
ETAG,
LENGTH,
CREATION,
MODIFIED,
TYPE,
EXECUTE,
END
};
static const ne_propname prop_names[] = {
[NAME] = {"DAV:", "displayname"},
[ETAG] = {"DAV:", "getetag"},
[LENGTH] = {"DAV:", "getcontentlength"},
[CREATION] ={"DAV:", "creationdate"},
[MODIFIED] = {"DAV:", "getlastmodified"},
[TYPE] = {"DAV:", "resourcetype"},
[EXECUTE] = {"http://apache.org/dav/props/", "executable"},
[END] = {NULL, NULL}
};