Files
tubestation/toolkit/components/remote/nsUnixRemoteServer.h
Dave Townsend 3edef63aa3 Bug 1518639: Break out the remote server pieces from nsRemoteService and deCOMtaminate. r=jimm
This code is only ever used from c++ so does not need to be an XPCOM component.
Broken out a single nsRemoteService that is responsible for choosing the server
implementation to use.

Differential Revision: https://phabricator.services.mozilla.com/D19067
2019-02-27 15:45:51 -08:00

29 lines
958 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:expandtab:shiftwidth=2:tabstop=2:
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef __nsUnixRemoteServer_h__
#define __nsUnixRemoteServer_h__
#include "nsString.h"
#ifdef IS_BIG_ENDIAN
# define TO_LITTLE_ENDIAN32(x) \
((((x)&0xff000000) >> 24) | (((x)&0x00ff0000) >> 8) | \
(((x)&0x0000ff00) << 8) | (((x)&0x000000ff) << 24))
#else
# define TO_LITTLE_ENDIAN32(x) (x)
#endif
class nsUnixRemoteServer {
protected:
void SetDesktopStartupIDOrTimestamp(const nsACString& aDesktopStartupID,
uint32_t aTimestamp);
const char* HandleCommandLine(const char* aBuffer, uint32_t aTimestamp);
};
#endif // __nsGTKRemoteService_h__