1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00
psyced/world/net/include/uniform.h
psyc://psyced.org/~lynX 6fd2423ff9 use the UNick
2009-03-04 11:27:19 +01:00

27 lines
752 B
C

#ifndef URL
#define URL(urlstr) parse_uniform(urlstr)
// essential parts, also used by render_uniform
#define UScheme 0
#define UUser 1
#define UPass 2
#define UHost 3
#define UPort 4
#define UTransport 5
#define UResource 6
#define UQuery 7
#define UChannel 8
// convenient snippets of the URL
#define UString 9 // the URL as such
#define UBody 10 // the URL without scheme and '//'
#define UUserAtHost 11 // mailto and xmpp style
#define UHostPort 12 // just host:port (and transport)
#define URoot 13 // root UNI of peer/server
#define USlashes 14 // the // if the protocol has them
#define UNick 15 // whatever works as a nickname
//efine UCircuit 16 // scheme:host:port
// (not provided by parse_uniform)
#define USize 16
#endif