Files
sdk/runtime/bin/extensions.h
T
whesse@google.com 0e40002890 Add native extensions to the Dart shell, on the linux platform.
BUG=
TEST=standalone/TestExtensionTest

Review URL: https://chromiumcodereview.appspot.com//9430051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4529 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 13:25:11 +00:00

25 lines
866 B
C++

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef BIN_EXTENSIONS_H_
#define BIN_EXTENSIONS_H_
#include "include/dart_api.h"
#include "platform/globals.h"
class Extensions {
public:
// TODO(whesse): Make loading extensions lazy, so dynamic library is loaded
// only when first native function is called.
// TODO(whesse): Make extension load from a relative path relative to
// the library it is in. Currently loads from current working directory.
static Dart_Handle LoadExtension(const char* extension_url,
Dart_Handle library);
private:
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions);
};
#endif // BIN_EXTENSIONS_H_