1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef __nsUnixRemoteServer_h__
9 #define __nsUnixRemoteServer_h__
11 #include "nsStringFwd.h"
12 #include "mozilla/Span.h"
15 # define TO_LITTLE_ENDIAN32(x) \
16 ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
17 (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
19 # define TO_LITTLE_ENDIAN32(x) (x)
22 class nsUnixRemoteServer
{
24 void SetStartupTokenOrTimestamp(const nsACString
& aStartupToken
,
26 const char* HandleCommandLine(mozilla::Span
<const char> aBuffer
,
30 #endif // __nsGTKRemoteService_h__