diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
| commit | 381c9c8870fad4c544f29deec22ba4be3549a731 (patch) | |
| tree | f5f26e2dd380910b0ddd26e3d885d6bf56d40181 /include/servers.h | |
| parent | 2528dc80bd1b3e6b2c09db23eb51659e30128110 (diff) | |
The first of a few "CBX OCDing over code style" commits, focusing on include/* and src/* but not src/core/* or src/modules/*.
Diffstat (limited to 'include/servers.h')
| -rw-r--r-- | include/servers.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/servers.h b/include/servers.h index 3a26e1546..2da40143e 100644 --- a/include/servers.h +++ b/include/servers.h @@ -1,3 +1,6 @@ +#ifndef SERVERS_H +#define SERVERS_H + /* Anope */ extern CoreExport Server *Me; @@ -112,7 +115,7 @@ class CoreExport Server : public Flags<ServerFlag> /** Get the name for this server * @return The name */ - const std::string& GetName() const; + const std::string &GetName() const; /** Get the number of hops this server is from services * @return Number of hops @@ -122,27 +125,27 @@ class CoreExport Server : public Flags<ServerFlag> /** Set the server description * @param desc The new description */ - void SetDescription(const std::string& desc); + void SetDescription(const std::string &desc); /** Get the server description * @return The server description */ - const std::string& GetDescription() const; + const std::string &GetDescription() const; /** Get the server numeric/SID * @return The numeric/SID */ - const std::string& GetSID() const; + const std::string &GetSID() const; /** Get the list of links this server has, or NULL if it has none * @return A list of servers */ - const std::list<Server*>* GetLinks() const; + const std::list<Server *> *GetLinks() const; /** Get the uplink server for this server, if this is our uplink will be Me * @return The servers uplink */ - Server* GetUplink() const; + Server *GetUplink() const; /** Adds a link to this server * @param s The linking server @@ -174,6 +177,7 @@ class CoreExport Server : public Flags<ServerFlag> * @param s The server list to search for this server on, defaults to our Uplink * @return The server */ - static Server* Find(const std::string &name, Server *s = NULL); + static Server *Find(const std::string &name, Server *s = NULL); }; +#endif // SERVERS_H |
