Backed out changeset b06f19b95b94 (bug 1784438) for causing build bustages CLOSED...
[gecko.git] / toolkit / components / remote / nsUnixRemoteServer.h
blobb55c01e6ded4ffd8281f8bab38be8500f1e10394
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
3 */
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"
14 #ifdef IS_BIG_ENDIAN
15 # define TO_LITTLE_ENDIAN32(x) \
16 ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
17 (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
18 #else
19 # define TO_LITTLE_ENDIAN32(x) (x)
20 #endif
22 class nsUnixRemoteServer {
23 protected:
24 void SetStartupTokenOrTimestamp(const nsACString& aStartupToken,
25 uint32_t aTimestamp);
26 const char* HandleCommandLine(mozilla::Span<const char> aBuffer,
27 uint32_t aTimestamp);
30 #endif // __nsGTKRemoteService_h__