aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Client.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-10net/SocketAddress: light wrapper for struct sockaddrMax Kellermann1-2/+2
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-06-11ClientList: use class boost::intrusive::listMax Kellermann1-1/+11
Eliminate extra allocations for the std::list node instances.
2014-02-07Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann1-0/+5
Use Storage::MapUTF8() internally, don't use global variables.
2014-02-04Instance: add Database attributeMax Kellermann1-0/+6
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-02ClientFile: move client_allow_file() into the Client classMax Kellermann1-0/+13
2014-01-24Client*: move to client/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-06event/SocketMonitor: don't close the socket automaticallyMax Kellermann1-0/+5
Users now have to call Close() explicitly. This simplifies using the class, as most users have automatic socket management already, and Steal() had to be used often.
2013-11-28include cleanup using iwyuMax Kellermann1-1/+1
2013-10-30*: update copyright year to 2013Max Kellermann1-1/+1
2013-10-28player_control: rename to PlayerControlMax Kellermann1-1/+1
2013-10-20*Commands: move to src/command/Max Kellermann1-1/+1
2013-10-19Client: move message functions into the classMax Kellermann1-5/+24
2013-10-19Client: move trivial functions into the Client classMax Kellermann1-25/+24
2013-10-19ClientInternal: move class Client to Client.hxxMax Kellermann1-1/+89
Publish the Client API, preparing to move more code into the Client class.
2013-10-19*: use references instead of pointersMax Kellermann1-7/+9
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-10-15gcc.h: major updateMax Kellermann1-1/+1
Copy the according file from another project (i.e. XCSoar). This will allow copying more code more easily.
2013-01-16ClientList: convert to a classMax Kellermann1-1/+0
2013-01-15Client: rebase on the new BufferedSocket classMax Kellermann1-2/+2
2013-01-15Client: move connection functions into the classMax Kellermann1-3/+0
2013-01-07Client: add Partition reference attributeMax Kellermann1-3/+2
playlist and player_control are deprecated.
2013-01-04Client: add "playlist" attributeMax Kellermann1-2/+4
Reduce access to the global variable "g_playlist".
2013-01-03Client: rename the struct client to class ClientMax Kellermann1-9/+9
2013-01-03client: convert to C++Max Kellermann1-0/+0
2012-08-02gcc.h: re-add gcc_const and gcc_pureMax Kellermann1-6/+9
Remove GLib dependency from some headers.
2012-02-13client: add function client_is_local()Max Kellermann1-0/+11
2012-02-13client: add "pure" attributesMax Kellermann1-0/+3
2011-01-29client_idle: add header client_idle.hMax Kellermann1-13/+0
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-1/+3
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-03-30client: client_write() does not necessary for export.Avuton Olrich1-5/+0
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-02-28client: use sockaddr_to_string()Max Kellermann1-1/+1
Removed the sockaddr_to_tmp_string() hack, use the new function sockaddr_to_string() instead.
2008-12-31client: run client_manager_expire() in an idle eventMax Kellermann1-1/+0
With the GLib main loop, the client manager can install its own event in case a client is expired. No need for main.c to call client_manager_expire() manually.
2008-12-30main: use the GLib main loopMax Kellermann1-1/+0
This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
2008-12-29client: include winsock headers on WIN32Max Kellermann1-1/+1
On Windows, socket declarations reside in winsock.h and ws2tcpip.h. The POSIX headers sys/socket.h etc. are not available.
2008-12-02replaced mpd_printf etc by G_GNUC_PRINTFThomas Jansen1-3/+2
We want to remove gcc.h eventually. This takes care of all the G_GNUC_PRINTF macros.
2008-11-22command: allow clients to subscribe to specific idle eventsMarc Pavot1-1/+1
The client may provide the names of idle events as arguments to the "idle" command to inform MPD that it is only interested in these events.
2008-10-31client: use boolMax Kellermann1-1/+1
Return bool instead of int.
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
2008-10-17client: converted permissions to unsignedMax Kellermann1-2/+2
client->permission is a bit set, and should be unsigned.
2008-10-15listen, client: enable SO_PASSCRED, get client's uidMax Kellermann1-1/+7
Enable authentication over unix sockets. Store the client's uid in the client struct.
2008-10-14command: added command "idle"Max Kellermann1-0/+14
"idle" waits until something noteworthy happens on the server, e.g. song change, playlist modified, database updated. This allows clients to keep up to date without polling.
2008-10-08don't include os_compat.hMax Kellermann1-1/+4
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-09-07client: added client_[gs]et_permission()Max Kellermann1-0/+4
The code in command.c shouldn't mess with a pointer to client->permission. Provide an API for accessing this value.
2008-09-07removed fdprintf() and client_print()Max Kellermann1-2/+0
All callers of fdprintf() have been converted to client_printf() or fprintf(); it is time to remove this clumsy hack now. We can also remove client_print() which took a file descriptor as parameter.
2008-09-07client: removed client_get_fd()Max Kellermann1-7/+0
Now that we have removed all invocations of client_get_fd(), we can safely remove this transitional function. All access to the file descriptor is now hidden behind the interface declared in client.h.