xpcom/glue/standalone/nsXPCOMGlue.h
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 10 Jan 2017 17:12:43 +0900
changeset 377107 6b46b8d889dfcf921c7823655cf1b92c55451c2f
parent 377103 a7dac14f91df3f94ed809465f80833c310a99f0c
permissions -rw-r--r--
Bug 1306327 - Remove everything related to frozen functions from the XPCOM glue. r=bsmedberg Now that nothing is using those functions, we can remove them and limit the scope of the standalone glue to initialize the new Bootstrap API.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 nsXPCOMGlue_h__
#define nsXPCOMGlue_h__

#include "nscore.h"

#ifdef XPCOM_GLUE

#include "mozilla/Bootstrap.h"

typedef void (*NSFuncPtr)();

namespace mozilla {

/**
 * Initialize the XPCOM glue by dynamically linking against the XPCOM
 * shared library indicated by xpcomFile and return a Bootstrap instance.
 */
NS_HIDDEN_(Bootstrap::UniquePtr) GetBootstrap(const char* aXPCOMFile);

} // namespace mozilla

#endif // XPCOM_GLUE
#endif // nsXPCOMGlue_h__