mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibCore: Use clang-format on CoreIPC{Client,Server}.
This commit is contained in:
parent
82446ea701
commit
c289e49ee5
2 changed files with 376 additions and 380 deletions
|
@ -1,23 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
#include <LibCore/CLocalSocket.h>
|
||||
#include <LibCore/CSyscallUtils.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <LibAudio/ASAPI.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CLocalSocket.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <LibCore/CSyscallUtils.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/uio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define CIPC_DEBUG
|
||||
|
||||
namespace IPC
|
||||
{
|
||||
namespace IPC {
|
||||
namespace Client {
|
||||
|
||||
class Event : public CEvent {
|
||||
|
@ -76,7 +75,6 @@ public:
|
|||
|
||||
virtual void handshake() = 0;
|
||||
|
||||
|
||||
virtual void event(CEvent& event) override
|
||||
{
|
||||
if (event.type() == Event::PostProcess) {
|
||||
|
@ -177,7 +175,8 @@ protected:
|
|||
|
||||
virtual void postprocess_bundles(Vector<IncomingMessageBundle>& new_bundles)
|
||||
{
|
||||
dbg() << "Client::Connection: " << " warning: discarding " << new_bundles.size() << " unprocessed bundles; this may not be what you want";
|
||||
dbg() << "Client::Connection: "
|
||||
<< " warning: discarding " << new_bundles.size() << " unprocessed bundles; this may not be what you want";
|
||||
new_bundles.clear();
|
||||
}
|
||||
|
||||
|
@ -227,4 +226,3 @@ private:
|
|||
|
||||
} // Client
|
||||
} // IPC
|
||||
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibCore/CObject.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CIODevice.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <LibCore/CObject.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/uio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define CIPC_DEBUG
|
||||
|
||||
namespace IPC
|
||||
{
|
||||
namespace IPC {
|
||||
namespace Server {
|
||||
|
||||
class Event : public CEvent {
|
||||
|
@ -218,4 +217,3 @@ private:
|
|||
|
||||
} // Server
|
||||
} // IPC
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue