diff --git a/include/application/adapter/http.h b/include/application/adapter/http.h index 44ef4d3..2e6cbb4 100644 --- a/include/application/adapter/http.h +++ b/include/application/adapter/http.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,6 +33,7 @@ TR_CLASS(ApplicationAdapterHttp) { Router router; }; TR_INSTANCE_INIT(ApplicationAdapterHttp); +TR_CLASSVARS_DECL(ApplicationAdapterHttp) {}; #endif // __APPLICATION_ADAPTER_HTTP_H__ diff --git a/include/application/application.h b/include/application/application.h index d8a28a9..9ee31a3 100644 --- a/include/application/application.h +++ b/include/application/application.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,6 +68,7 @@ TR_CLASS(Application) { const char * loc; }; TR_INSTANCE_INIT(Application); +TR_CLASSVARS_DECL(Application) {}; int applicationLogin(Application, Credential, Session); void applicationLogout(Application, Session); diff --git a/include/asset.h b/include/asset.h index 198c81b..d251088 100644 --- a/include/asset.h +++ b/include/asset.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,6 +50,7 @@ TR_CLASS(Asset) { size_t ref_count; }; TR_INSTANCE_INIT(Asset); +TR_CLASSVARS_DECL(Asset) {}; Asset assetPoolGet(const char *, size_t); size_t assetPoolRelease(Asset); diff --git a/include/auth.h b/include/auth.h index a3ec86a..44671c8 100644 --- a/include/auth.h +++ b/include/auth.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/auth/auth.h b/include/auth/auth.h index 014a9b5..d7d6966 100644 --- a/include/auth/auth.h +++ b/include/auth/auth.h @@ -23,7 +23,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -59,6 +59,7 @@ TR_CLASS(Auth) { void * auth[MAX_AUTH + 1]; }; TR_INSTANCE_INIT(Auth); +TR_CLASSVARS_DECL(Auth) {}; int authCreate(Auth, AuthModule, ...); diff --git a/include/auth/credential.h b/include/auth/credential.h index 613edc0..4f2c826 100644 --- a/include/auth/credential.h +++ b/include/auth/credential.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,6 +49,7 @@ TR_CLASS(Credential) { } cred; }; TR_INSTANCE_INIT(Credential); +TR_CLASSVARS_DECL(Credential) {}; #endif // __AUTH_CREDENTIAL_H__ diff --git a/include/auth/interface/auth.h b/include/auth/interface/auth.h index ed65586..0fc5e05 100644 --- a/include/auth/interface/auth.h +++ b/include/auth/interface/auth.h @@ -9,7 +9,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/auth/ldap.h b/include/auth/ldap.h index d9efb6a..2591756 100644 --- a/include/auth/ldap.h +++ b/include/auth/ldap.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +36,7 @@ TR_CLASS(AuthLdap) { size_t nbase_dn; }; TR_INSTANCE_INIT(AuthLdap); +TR_CLASSVARS_DECL(AuthLdap) {}; #endif // __AUTH_LDAP_H__ diff --git a/include/auth/storage.h b/include/auth/storage.h index 12a5544..360a5f1 100644 --- a/include/auth/storage.h +++ b/include/auth/storage.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +39,7 @@ TR_CLASS(AuthStorage) { Storage store; }; TR_INSTANCE_INIT(AuthStorage); +TR_CLASSVARS_DECL(AuthStorage) {}; /** * \todo In future this should use a more general purpose hash diff --git a/include/config/config.h b/include/config/config.h index 497c809..945e481 100644 --- a/include/config/config.h +++ b/include/config/config.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,6 +35,7 @@ TR_CLASS(Config) { TR_Hash config; }; TR_INSTANCE_INIT(Config); +TR_CLASSVARS_DECL(Config) {}; ConfigValue configGet(Config, const char *, size_t); diff --git a/include/config/value.h b/include/config/value.h index b23001d..7259805 100644 --- a/include/config/value.h +++ b/include/config/value.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,6 +49,7 @@ TR_CLASS(ConfigValue) { unsigned long hash; }; TR_INSTANCE_INIT(ConfigValue); +TR_CLASSVARS_DECL(ConfigValue) {}; #endif // __CONFIG_VALUE_H__ diff --git a/include/http.h b/include/http.h index 5eb5f04..f9d224e 100644 --- a/include/http.h +++ b/include/http.h @@ -1,3 +1,24 @@ +/** + * \file + * + * \author Georg Hopp + * + * \copyright + * Copyright © 2014 Georg Hopp + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ #ifndef __HTTP_H__ #define __HTTP_H__ diff --git a/include/http/cookie.h b/include/http/cookie.h index a969ab5..5db011b 100644 --- a/include/http/cookie.h +++ b/include/http/cookie.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,6 +43,7 @@ TR_CLASS(HttpCookie) { size_t nvalue; }; TR_INSTANCE_INIT(HttpCookie); +TR_CLASSVARS_DECL(HttpCookie) {}; char * httpCookieToString(HttpCookie); HttpCookie httpStringToCookie(const char *); diff --git a/include/http/header.h b/include/http/header.h index d82eda4..21e574c 100644 --- a/include/http/header.h +++ b/include/http/header.h @@ -6,7 +6,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,7 @@ TR_CLASS(HttpHeader) { size_t size; //!< full size of this header }; TR_INSTANCE_INIT(HttpHeader); +TR_CLASSVARS_DECL(HttpHeader) {}; size_t httpHeaderToString(HttpHeader, char *); diff --git a/include/http/interface/http_intro.h b/include/http/interface/http_intro.h index 480e8de..51b38c6 100644 --- a/include/http/interface/http_intro.h +++ b/include/http/interface/http_intro.h @@ -7,7 +7,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/http/message.h b/include/http/message.h index b29ad12..a3e6b35 100644 --- a/include/http/message.h +++ b/include/http/message.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,6 +40,7 @@ TR_CLASS(HttpMessage) { int dbody; }; TR_INSTANCE_INIT(HttpMessage); +TR_CLASSVARS_DECL(HttpMessage) {}; char httpMessageHasKeepAlive(HttpMessage); size_t httpMessageHeaderSizeGet(HttpMessage); diff --git a/include/http/parser.h b/include/http/parser.h index 93671a5..74a06ca 100644 --- a/include/http/parser.h +++ b/include/http/parser.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -55,6 +55,7 @@ TR_CLASS(HttpParser) { HttpMessageState state; }; TR_INSTANCE_INIT(HttpParser); +TR_CLASSVARS_DECL(HttpParser) {}; ssize_t httpParserParse(void *, TR_Stream); void httpParserRequestVars(HttpParser); diff --git a/include/http/request.h b/include/http/request.h index c745f84..44f949f 100644 --- a/include/http/request.h +++ b/include/http/request.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -57,6 +57,7 @@ TR_CLASS(HttpRequest) { TR_Hash cookies; }; TR_INSTANCE_INIT(HttpRequest); +TR_CLASSVARS_DECL(HttpRequest) {}; HttpMethod httpRequestGetMethodId(HttpRequest); diff --git a/include/http/response.h b/include/http/response.h index 85d3b5d..2a638af 100644 --- a/include/http/response.h +++ b/include/http/response.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,7 @@ TR_CLASS(HttpResponse) { char * reason; }; TR_INSTANCE_INIT(HttpResponse); +TR_CLASSVARS_DECL(HttpResponse) {}; HttpResponse httpResponse304( const char *, size_t, diff --git a/include/http/worker.h b/include/http/worker.h index 6ae1cda..e3e25e8 100644 --- a/include/http/worker.h +++ b/include/http/worker.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -56,6 +56,7 @@ TR_CLASS(HttpWorker) { HttpWriter writer; }; TR_INSTANCE_INIT(HttpWorker); +TR_CLASSVARS_DECL(HttpWorker) {}; #endif // __HTTP_WORKER_H__ diff --git a/include/http/writer.h b/include/http/writer.h index 30dd12c..5c8433a 100644 --- a/include/http/writer.h +++ b/include/http/writer.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -90,6 +90,7 @@ TR_CLASS(HttpWriter) { HttpWriterState state; }; TR_INSTANCE_INIT(HttpWriter); +TR_CLASSVARS_DECL(HttpWriter) {}; ssize_t httpWriterWrite(void *, TR_Stream); diff --git a/include/permission.h b/include/permission.h index 9b38283..723a89f 100644 --- a/include/permission.h +++ b/include/permission.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,6 +53,7 @@ TR_CLASS(Permission) { ResourceAction action; }; TR_INSTANCE_INIT(Permission); +TR_CLASSVARS_DECL(Permission); #endif // __PERMISSION_H__ diff --git a/include/rbac/object.h b/include/rbac/object.h index ce59089..e9fe189 100644 --- a/include/rbac/object.h +++ b/include/rbac/object.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ TR_CLASS(RbacObject) { size_t nname; }; TR_INSTANCE_INIT(RbacObject); +TR_CLASSVARS_DECL(RbacObject) {}; #endif // __RBAC_OBJECT_H__ diff --git a/include/rbac/operation.h b/include/rbac/operation.h index ce20aea..b27aaaa 100644 --- a/include/rbac/operation.h +++ b/include/rbac/operation.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,6 +33,7 @@ TR_CLASS(RbacOperation) { size_t nname; }; TR_INSTANCE_INIT(RbacOperation); +TR_CLASSVARS_DECL(RbacOperation) {}; #endif // __RBAC_OPERATION_H__ diff --git a/include/rbac/user.h b/include/rbac/user.h index f32639f..a22f102 100644 --- a/include/rbac/user.h +++ b/include/rbac/user.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,6 +42,7 @@ TR_CLASS(RbacUser) { size_t nname; }; TR_INSTANCE_INIT(RbacUser); +TR_CLASSVARS_DECL(RbacUser) {}; // void userSerialize(User, void **, size_t *); // void userDeserialize(User, void *, size_t); diff --git a/include/role.h b/include/role.h index f933860..2a50ba5 100644 --- a/include/role.h +++ b/include/role.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -98,6 +98,7 @@ TR_CLASS(Role) { // end og ROLE definition. }; TR_INSTANCE_INIT(Role); +TR_CLASSVARS_DECL(Role) {}; #endif // __ROLE_H__ diff --git a/include/router.h b/include/router.h index 84677e5..638e3a5 100644 --- a/include/router.h +++ b/include/router.h @@ -12,7 +12,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,6 +52,7 @@ TR_CLASS(Router) { size_t nprefix; }; TR_INSTANCE_INIT(Router); +TR_CLASSVARS_DECL(Router) {}; HttpResponse routerRoute(Router, HttpRequest, Session); diff --git a/include/server.h b/include/server.h index d126140..30d7047 100644 --- a/include/server.h +++ b/include/server.h @@ -7,7 +7,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,6 +54,7 @@ TR_CLASS(Server) { struct conns * conns; }; TR_INSTANCE_INIT(Server); +TR_CLASSVARS_DECL(Server) {}; void serverRun(Server this); diff --git a/include/session.h b/include/session.h index 2144f28..58a8c02 100644 --- a/include/session.h +++ b/include/session.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -71,6 +71,7 @@ TR_CLASS(Session) { User user; }; TR_INSTANCE_INIT(Session); +TR_CLASSVARS_DECL(Session) {}; #endif // __SESSION_H__ diff --git a/include/storage/storage.h b/include/storage/storage.h index 6451c56..213738a 100644 --- a/include/storage/storage.h +++ b/include/storage/storage.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,6 +42,7 @@ TR_CLASS(Storage) { char * db_name; }; TR_INSTANCE_INIT(Storage); +TR_CLASSVARS_DECL(Storage) {}; StoragePutResult storagePut(Storage, char *, size_t, char *, size_t); StoragePutResult storageUpdate(Storage, char *, size_t, char *, size_t); diff --git a/include/user.h b/include/user.h index 3001227..619f122 100644 --- a/include/user.h +++ b/include/user.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,6 +54,7 @@ TR_CLASS(User) { size_t * nsurname; }; TR_INSTANCE_INIT(User); +TR_CLASSVARS_DECL(User) {}; #endif // __USER_H__ diff --git a/include/utils/http.h b/include/utils/http.h index fe8fc26..9cd94fc 100644 --- a/include/utils/http.h +++ b/include/utils/http.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/utils/mime_type.h b/include/utils/mime_type.h index b899540..961f347 100644 --- a/include/utils/mime_type.h +++ b/include/utils/mime_type.h @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/utils/signalHandling.h b/include/utils/signalHandling.h index cd1c973..03e7acd 100644 --- a/include/utils/signalHandling.h +++ b/include/utils/signalHandling.h @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/adapter/http/http.c b/src/application/adapter/http/http.c index 74e0a16..5b77515 100644 --- a/src/application/adapter/http/http.c +++ b/src/application/adapter/http/http.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -61,6 +61,7 @@ TR_INIT_IFACE(TR_Observer, applicationAdapterHttpUpdate); TR_CREATE_CLASS( ApplicationAdapterHttp, NULL, + NULL, TR_IF(TR_Class), TR_IF(TR_Observer)); diff --git a/src/application/adapter/http/update.c b/src/application/adapter/http/update.c index 33fc85f..e3aa006 100644 --- a/src/application/adapter/http/update.c +++ b/src/application/adapter/http/update.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/application.c b/src/application/application.c index 9cf1c47..eadb063 100644 --- a/src/application/application.c +++ b/src/application/application.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,6 +88,6 @@ applicationDtor(void * _this) TR_INIT_IFACE(TR_Class, applicationCtor, applicationDtor, NULL); -TR_CREATE_CLASS(Application, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Application, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/application/controller/_get_credential_from_args.c b/src/application/controller/_get_credential_from_args.c index 345e458..ad309bc 100644 --- a/src/application/controller/_get_credential_from_args.c +++ b/src/application/controller/_get_credential_from_args.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_get_user_from_args.c b/src/application/controller/_get_user_from_args.c index 91d7e7b..1f20044 100644 --- a/src/application/controller/_get_user_from_args.c +++ b/src/application/controller/_get_user_from_args.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_process_user_create_args.c b/src/application/controller/_process_user_create_args.c index 6975deb..2419094 100644 --- a/src/application/controller/_process_user_create_args.c +++ b/src/application/controller/_process_user_create_args.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_update_user_from_args.c b/src/application/controller/_update_user_from_args.c index 6a7b5a7..60a05df 100644 --- a/src/application/controller/_update_user_from_args.c +++ b/src/application/controller/_update_user_from_args.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_validate_email.c b/src/application/controller/_validate_email.c index 04dd0e0..f7329d9 100644 --- a/src/application/controller/_validate_email.c +++ b/src/application/controller/_validate_email.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_validate_password.c b/src/application/controller/_validate_password.c index 9998641..70005ff 100644 --- a/src/application/controller/_validate_password.c +++ b/src/application/controller/_validate_password.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/controller/_validate_password_repeat.c b/src/application/controller/_validate_password_repeat.c index 2dfca69..e7d81e1 100644 --- a/src/application/controller/_validate_password_repeat.c +++ b/src/application/controller/_validate_password_repeat.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/create_user.c b/src/application/create_user.c index 5df4457..8f143dc 100644 --- a/src/application/create_user.c +++ b/src/application/create_user.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/get_user.c b/src/application/get_user.c index 77f3245..93cb4b1 100644 --- a/src/application/get_user.c +++ b/src/application/get_user.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/login.c b/src/application/login.c index 6ab04ee..f934e64 100644 --- a/src/application/login.c +++ b/src/application/login.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/logout.c b/src/application/logout.c index 0d1ccae..8d48123 100644 --- a/src/application/logout.c +++ b/src/application/logout.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/session_cleanup.c b/src/application/session_cleanup.c index ec57fc8..1313e51 100644 --- a/src/application/session_cleanup.c +++ b/src/application/session_cleanup.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/session_get.c b/src/application/session_get.c index e611250..3521e48 100644 --- a/src/application/session_get.c +++ b/src/application/session_get.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/session_start.c b/src/application/session_start.c index 97c45cd..21eda31 100644 --- a/src/application/session_start.c +++ b/src/application/session_start.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/session_stop.c b/src/application/session_stop.c index 5238694..d7d5380 100644 --- a/src/application/session_stop.c +++ b/src/application/session_stop.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/update_password.c b/src/application/update_password.c index 45118d6..7db70df 100644 --- a/src/application/update_password.c +++ b/src/application/update_password.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/application/update_user.c b/src/application/update_user.c index 11694c6..8f4ff2a 100644 --- a/src/application/update_user.c +++ b/src/application/update_user.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/asset/asset.c b/src/asset/asset.c index ebbd5ea..a7f0f12 100644 --- a/src/asset/asset.c +++ b/src/asset/asset.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -139,6 +139,6 @@ assetHandleDouble(void * _this, void * _doub) TR_INIT_IFACE(TR_Class, assetCtor, assetDtor, NULL); TR_INIT_IFACE(TR_Hashable, assetGetHash, assetHandleDouble); -TR_CREATE_CLASS(Asset, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); +TR_CREATE_CLASS(Asset, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); // vim: set ts=4 sw=4: diff --git a/src/asset/pool.c b/src/asset/pool.c index e15b549..98526df 100644 --- a/src/asset/pool.c +++ b/src/asset/pool.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/auth/auth.c b/src/auth/auth.c index e260ca8..5143e4d 100644 --- a/src/auth/auth.c +++ b/src/auth/auth.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -77,6 +77,6 @@ authAuthenticate(void * _this, Credential cred, TR_Uuid user_index) TR_INIT_IFACE(TR_Class, authCtor, authDtor, NULL); TR_INIT_IFACE(Auth, authAuthenticate); -TR_CREATE_CLASS(Auth, NULL, TR_IF(TR_Class), TR_IF(Auth)); +TR_CREATE_CLASS(Auth, NULL, NULL, TR_IF(TR_Class), TR_IF(Auth)); // vim: set ts=4 sw=4: diff --git a/src/auth/create.c b/src/auth/create.c index 0a2aae8..8986cd2 100644 --- a/src/auth/create.c +++ b/src/auth/create.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/auth/credential.c b/src/auth/credential.c index 25b00a7..f01db6f 100644 --- a/src/auth/credential.c +++ b/src/auth/credential.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -78,6 +78,6 @@ credentialDtor(void * _this) } TR_INIT_IFACE(TR_Class, credentialCtor, credentialDtor, NULL); -TR_CREATE_CLASS(Credential, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Credential, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/auth/interface/auth.c b/src/auth/interface/auth.c index db25bf8..3462d3e 100644 --- a/src/auth/interface/auth.c +++ b/src/auth/interface/auth.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/auth/ldap.c b/src/auth/ldap.c index f695ec2..44f3ad2 100644 --- a/src/auth/ldap.c +++ b/src/auth/ldap.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,6 +118,6 @@ authLdapAuthenticate(void * _this, Credential cred, TR_Uuid user_index) TR_INIT_IFACE(TR_Class, authLdapCtor, authLdapDtor, NULL); TR_INIT_IFACE(Auth, authLdapAuthenticate); -TR_CREATE_CLASS(AuthLdap, NULL, TR_IF(TR_Class), TR_IF(Auth)); +TR_CREATE_CLASS(AuthLdap, NULL, NULL, TR_IF(TR_Class), TR_IF(Auth)); // vim: set ts=4 sw=4: diff --git a/src/auth/storage/hash_pw.c b/src/auth/storage/hash_pw.c index 804e83c..02ae4c8 100644 --- a/src/auth/storage/hash_pw.c +++ b/src/auth/storage/hash_pw.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/auth/storage/storage.c b/src/auth/storage/storage.c index a2205d5..28e6c60 100644 --- a/src/auth/storage/storage.c +++ b/src/auth/storage/storage.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -91,6 +91,6 @@ authStorageAuthenticate(void * _this, Credential cred, TR_Uuid user_index) TR_INIT_IFACE(TR_Class, authStorageCtor, authStorageDtor, NULL); TR_INIT_IFACE(Auth, authStorageAuthenticate); -TR_CREATE_CLASS(AuthStorage, NULL, TR_IF(TR_Class), TR_IF(Auth)); +TR_CREATE_CLASS(AuthStorage, NULL, NULL, TR_IF(TR_Class), TR_IF(Auth)); // vim: set ts=4 sw=4: diff --git a/src/config/config.c b/src/config/config.c index fb93ddb..d5a6a76 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -119,6 +119,6 @@ void configDtor(void * _this) } TR_INIT_IFACE(TR_Class, configCtor, configDtor, NULL); -TR_CREATE_CLASS(Config, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Config, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/config/get.c b/src/config/get.c index 7ce9a6d..e5fa3c8 100644 --- a/src/config/get.c +++ b/src/config/get.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/config/value.c b/src/config/value.c index 327898f..ca38116 100644 --- a/src/config/value.c +++ b/src/config/value.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -96,6 +96,6 @@ configValueHandleDouble(void * _this, void * _double) TR_INIT_IFACE(TR_Class, configValueCtor, configValueDtor, NULL); TR_INIT_IFACE(TR_Hashable, configValueGetHash, configValueHandleDouble); -TR_CREATE_CLASS(ConfigValue, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); +TR_CREATE_CLASS(ConfigValue, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); // vim: set ts=4 sw=4: diff --git a/src/http/cookie.c b/src/http/cookie.c index ad0ffb2..0464594 100644 --- a/src/http/cookie.c +++ b/src/http/cookie.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -97,6 +97,6 @@ httpCookieHandleDouble(void * _this, void * _double) TR_INIT_IFACE(TR_Class, httpCookieCtor, httpCookieDtor, NULL); TR_INIT_IFACE(Hashable, httpCookieGetHash, httpCookieHandleDouble); -TR_CREATE_CLASS(HttpCookie, NULL, TR_IF(TR_Class), TR_IF(Hashable)); +TR_CREATE_CLASS(HttpCookie, NULL, NULL, TR_IF(TR_Class), TR_IF(Hashable)); // vim: set ts=4 sw=4: diff --git a/src/http/header.c b/src/http/header.c index 982133e..3550632 100644 --- a/src/http/header.c +++ b/src/http/header.c @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -100,6 +100,6 @@ httpHeaderHandleDouble(void * _this, void * _double) TR_INIT_IFACE(TR_Class, httpHeaderCtor, httpHeaderDtor, NULL); TR_INIT_IFACE(TR_Hashable, httpHeaderGetHash, httpHeaderHandleDouble); -TR_CREATE_CLASS(HttpHeader, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); +TR_CREATE_CLASS(HttpHeader, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); // vim: set ts=4 sw=4: diff --git a/src/http/header/to_string.c b/src/http/header/to_string.c index 089ee51..ea1f5dc 100644 --- a/src/http/header/to_string.c +++ b/src/http/header/to_string.c @@ -5,7 +5,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/interface/i_http_intro.c b/src/http/interface/i_http_intro.c index ed5df73..e839a79 100644 --- a/src/http/interface/i_http_intro.c +++ b/src/http/interface/i_http_intro.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/message.c b/src/http/message.c index 42893e9..0d8187e 100644 --- a/src/http/message.c +++ b/src/http/message.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,6 +69,6 @@ httpMessageDtor(void * _this) } TR_INIT_IFACE(TR_Class, httpMessageCtor, httpMessageDtor, NULL); -TR_CREATE_CLASS(HttpMessage, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(HttpMessage, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/http/message/get_version.c b/src/http/message/get_version.c index 0db7d99..fdc6b32 100644 --- a/src/http/message/get_version.c +++ b/src/http/message/get_version.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/message/has_keep_alive.c b/src/http/message/has_keep_alive.c index e3f61b6..30a1e5e 100644 --- a/src/http/message/has_keep_alive.c +++ b/src/http/message/has_keep_alive.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/message/has_valid_version.c b/src/http/message/has_valid_version.c index c72e7b1..2c6f263 100644 --- a/src/http/message/has_valid_version.c +++ b/src/http/message/has_valid_version.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/message/header_size_get.c b/src/http/message/header_size_get.c index 15cbedd..d3c259b 100644 --- a/src/http/message/header_size_get.c +++ b/src/http/message/header_size_get.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/message/header_to_string.c b/src/http/message/header_to_string.c index 7a2a0ca..e7d3f27 100644 --- a/src/http/message/header_to_string.c +++ b/src/http/message/header_to_string.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser.c b/src/http/parser.c index 69d7232..6ec2638 100644 --- a/src/http/parser.c +++ b/src/http/parser.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,6 +66,6 @@ httpParserDtor(void * _this) TR_INIT_IFACE(TR_Class, httpParserCtor, httpParserDtor, NULL); TR_INIT_IFACE(TR_StreamReader, httpParserParse); -TR_CREATE_CLASS(HttpParser, NULL, TR_IF(TR_Class), TR_IF(TR_StreamReader)); +TR_CREATE_CLASS(HttpParser, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_StreamReader)); // vim: set ts=4 sw=4: diff --git a/src/http/parser/new_message.c b/src/http/parser/new_message.c index e265a9c..a18b9e4 100644 --- a/src/http/parser/new_message.c +++ b/src/http/parser/new_message.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser/p_body.c b/src/http/parser/p_body.c index 3bb41f8..ceabf53 100644 --- a/src/http/parser/p_body.c +++ b/src/http/parser/p_body.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser/p_header.c b/src/http/parser/p_header.c index 9361567..9549fb8 100644 --- a/src/http/parser/p_header.c +++ b/src/http/parser/p_header.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser/p_post_vars.c b/src/http/parser/p_post_vars.c index c3beff4..fb77ea0 100644 --- a/src/http/parser/p_post_vars.c +++ b/src/http/parser/p_post_vars.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser/p_request_vars.c b/src/http/parser/p_request_vars.c index a87a4ba..ec03f96 100644 --- a/src/http/parser/p_request_vars.c +++ b/src/http/parser/p_request_vars.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/parser/parse.c b/src/http/parser/parse.c index 5afd17e..4bec4d7 100644 --- a/src/http/parser/parse.c +++ b/src/http/parser/parse.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/request.c b/src/http/request.c index 186d424..dc46fe9 100644 --- a/src/http/request.c +++ b/src/http/request.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -130,6 +130,7 @@ TR_INIT_IFACE(TR_Class, httpRequestCtor, httpRequestDtor, NULL); TR_INIT_IFACE(HttpIntro, sizeGet, toString); TR_CREATE_CLASS(HttpRequest, HttpMessage, + NULL, TR_IF(TR_Class), TR_IF(HttpIntro)); diff --git a/src/http/request/get_method_id.c b/src/http/request/get_method_id.c index 1e15d92..88fe934 100644 --- a/src/http/request/get_method_id.c +++ b/src/http/request/get_method_id.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response.c b/src/http/response.c index 1fbb2a8..e1a6519 100644 --- a/src/http/response.c +++ b/src/http/response.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -101,6 +101,7 @@ TR_INIT_IFACE(HttpIntro, sizeGet, toString); TR_CREATE_CLASS( HttpResponse, HttpMessage, + NULL, TR_IF(TR_Class), TR_IF(HttpIntro)); diff --git a/src/http/response/304.c b/src/http/response/304.c index b49cac1..3a8ce80 100644 --- a/src/http/response/304.c +++ b/src/http/response/304.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response/403.c b/src/http/response/403.c index ddda52f..86224c8 100644 --- a/src/http/response/403.c +++ b/src/http/response/403.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response/404.c b/src/http/response/404.c index ff2744c..2cfe647 100644 --- a/src/http/response/404.c +++ b/src/http/response/404.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response/500.c b/src/http/response/500.c index 85c22ff..d9884c3 100644 --- a/src/http/response/500.c +++ b/src/http/response/500.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response/asset.c b/src/http/response/asset.c index 9a516d2..4983f3c 100644 --- a/src/http/response/asset.c +++ b/src/http/response/asset.c @@ -17,7 +17,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/response/json.c b/src/http/response/json.c index b976f76..c54920d 100644 --- a/src/http/response/json.c +++ b/src/http/response/json.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/worker.c b/src/http/worker.c index cafd80f..5239015 100644 --- a/src/http/worker.c +++ b/src/http/worker.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -166,6 +166,7 @@ TR_INIT_IFACE( TR_CREATE_CLASS( HttpWorker, NULL, + NULL, TR_IF(TR_Class), TR_IF(TR_StreamReader), TR_IF(TR_StreamWriter), diff --git a/src/http/worker/add_common_header.c b/src/http/worker/add_common_header.c index e10232a..aa53a29 100644 --- a/src/http/worker/add_common_header.c +++ b/src/http/worker/add_common_header.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/worker/add_computed_header.c b/src/http/worker/add_computed_header.c index 1e1091e..7f3454a 100644 --- a/src/http/worker/add_computed_header.c +++ b/src/http/worker/add_computed_header.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/worker/answer.c b/src/http/worker/answer.c index 3b65b38..5c4469d 100644 --- a/src/http/worker/answer.c +++ b/src/http/worker/answer.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/worker/get_asset.c b/src/http/worker/get_asset.c index cbee9ec..d061e6d 100644 --- a/src/http/worker/get_asset.c +++ b/src/http/worker/get_asset.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/worker/process.c b/src/http/worker/process.c index f7c47f9..863f6bb 100644 --- a/src/http/worker/process.c +++ b/src/http/worker/process.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/http/writer.c b/src/http/writer.c index 298eb4f..903112c 100644 --- a/src/http/writer.c +++ b/src/http/writer.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -57,6 +57,11 @@ httpWriterDtor(void * _this) TR_INIT_IFACE(TR_Class, httpWriterCtor, httpWriterDtor, NULL); TR_INIT_IFACE(TR_StreamWriter, httpWriterWrite); -TR_CREATE_CLASS(HttpWriter, NULL, TR_IF(TR_Class), TR_IF(TR_StreamWriter)); +TR_CREATE_CLASS( + HttpWriter, + NULL, + NULL, + TR_IF(TR_Class), + TR_IF(TR_StreamWriter)); // vim: set ts=4 sw=4: diff --git a/src/http/writer/write.c b/src/http/writer/write.c index b2bbf87..71d3e6c 100644 --- a/src/http/writer/write.c +++ b/src/http/writer/write.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/router/route.c b/src/router/route.c index 75f8b1e..1745757 100644 --- a/src/router/route.c +++ b/src/router/route.c @@ -7,7 +7,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/router/router.c b/src/router/router.c index 0f67e92..bc9b0d2 100644 --- a/src/router/router.c +++ b/src/router/router.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2013 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -64,6 +64,6 @@ routerDtor(void * _this) { } TR_INIT_IFACE(TR_Class, routerCtor, routerDtor, NULL); -TR_CREATE_CLASS(Router, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Router, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/server/close_conn.c b/src/server/close_conn.c index 3d2e455..3015fbf 100644 --- a/src/server/close_conn.c +++ b/src/server/close_conn.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/server/handle_accept.c b/src/server/handle_accept.c index aecdbc7..c8401ed 100644 --- a/src/server/handle_accept.c +++ b/src/server/handle_accept.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/server/poll.c b/src/server/poll.c index 7a29203..33c1298 100644 --- a/src/server/poll.c +++ b/src/server/poll.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/server/read.c b/src/server/read.c index 1606265..bc65ede 100644 --- a/src/server/read.c +++ b/src/server/read.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/server/run.c b/src/server/run.c index 549d4de..3d2031d 100644 --- a/src/server/run.c +++ b/src/server/run.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/server/server.c b/src/server/server.c index f5f826f..79da038 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -122,6 +122,6 @@ serverDtor(void * _this) } TR_INIT_IFACE(TR_Class, serverCtor, serverDtor, NULL); -TR_CREATE_CLASS(Server, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Server, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/server/write.c b/src/server/write.c index a69842e..83da303 100644 --- a/src/server/write.c +++ b/src/server/write.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/session/session.c b/src/session/session.c index 8b8078a..eee1843 100644 --- a/src/session/session.c +++ b/src/session/session.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -79,6 +79,6 @@ sessionHandleDouble(void * _this, void * _doub) TR_INIT_IFACE(TR_Class, sessionCtor, sessionDtor, NULL); TR_INIT_IFACE(TR_Hashable, sessionGetHash, sessionHandleDouble); -TR_CREATE_CLASS(Session, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); +TR_CREATE_CLASS(Session, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable)); // vim: set ts=4 sw=4: diff --git a/src/storage/delete.c b/src/storage/delete.c index 48d9560..077f949 100644 --- a/src/storage/delete.c +++ b/src/storage/delete.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/storage/get.c b/src/storage/get.c index 577691b..a3d634d 100644 --- a/src/storage/get.c +++ b/src/storage/get.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/storage/put.c b/src/storage/put.c index a7c2e71..a6048a2 100644 --- a/src/storage/put.c +++ b/src/storage/put.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/storage/storage.c b/src/storage/storage.c index 2665658..2ebe1de 100644 --- a/src/storage/storage.c +++ b/src/storage/storage.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,6 +67,6 @@ storageDtor(void * _this) } TR_INIT_IFACE(TR_Class, storageCtor, storageDtor, NULL); -TR_CREATE_CLASS(Storage, NULL, TR_IF(TR_Class)); +TR_CREATE_CLASS(Storage, NULL, NULL, TR_IF(TR_Class)); // vim: set ts=4 sw=4: diff --git a/src/storage/update.c b/src/storage/update.c index 96e8a1d..ded44f6 100644 --- a/src/storage/update.c +++ b/src/storage/update.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/taskrambler.c b/src/taskrambler.c index 670954d..be610ec 100644 --- a/src/taskrambler.c +++ b/src/taskrambler.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/testers/classvars.c b/src/testers/classvars.c new file mode 100644 index 0000000..5e8e3b5 --- /dev/null +++ b/src/testers/classvars.c @@ -0,0 +1,46 @@ +#include +#include + +#include "trbase.h" +#include "classvars.h" + +static +int +blaCtor(void * _this, va_list * params) +{ + Bla this = _this; + + this->inst_var = va_arg(*params, int); + TR_CLASSVARS(Bla, TR_GET_CLASS(this))->class_var++; + + return 0; +} + +static void blaDtor(void * _this) {}; + +static void blaCvInit(TR_class_ptr cls) +{ + puts("call cv init"); + TR_CLASSVARS(Bla, cls)->class_var = 0; +} + +TR_INIT_IFACE(TR_Class, blaCtor, blaDtor, NULL); +TR_CREATE_CLASS(Bla, NULL, blaCvInit, TR_IF(TR_Class)); + +int +main(int argc, char * argv[]) +{ + Bla bla1 = TR_new(Bla, 10); + Bla bla2 = TR_new(Bla, 20); + + TR_logger = TR_new(TR_LoggerStderr); + + printf("%d\n", TR_CLASSVARS(Bla, TR_GET_CLASS(bla1))->class_var); + printf("%d\n", TR_CLASSVARS(Bla, TR_GET_CLASS(bla2))->class_var); + printf("%d\n", bla1->inst_var); + printf("%d\n", bla2->inst_var); + + return 0; +} + +// vim: set ts=4 sw=4: diff --git a/src/testers/classvars.h b/src/testers/classvars.h new file mode 100644 index 0000000..11a4b43 --- /dev/null +++ b/src/testers/classvars.h @@ -0,0 +1,6 @@ +TR_CLASS(Bla) { + int inst_var; +}; +TR_CLASSVARS_DECL(Bla) { + int class_var; +}; diff --git a/src/user/user.c b/src/user/user.c index 3be9341..6a1cc22 100644 --- a/src/user/user.c +++ b/src/user/user.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -159,6 +159,7 @@ TR_INIT_IFACE(TR_Indexable, userIndexUuid); TR_CREATE_CLASS( User, NULL, + NULL, TR_IF(TR_Class), TR_IF(TR_Serializable), TR_IF(TR_Indexable)); diff --git a/src/utils/daemonize.c b/src/utils/daemonize.c index 881c506..536ae7f 100644 --- a/src/utils/daemonize.c +++ b/src/utils/daemonize.c @@ -6,7 +6,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/utils/http.c b/src/utils/http.c index 1719d51..f75cddf 100644 --- a/src/utils/http.c +++ b/src/utils/http.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/utils/mime_type.c b/src/utils/mime_type.c index 6504965..f9a8b17 100644 --- a/src/utils/mime_type.c +++ b/src/utils/mime_type.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/utils/signalHandling.c b/src/utils/signalHandling.c index a0f11c0..3fcb846 100644 --- a/src/utils/signalHandling.c +++ b/src/utils/signalHandling.c @@ -4,7 +4,7 @@ * \author Georg Hopp * * \copyright - * Copyright © 2012 Georg Hopp + * Copyright © 2014 Georg Hopp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by