ObjFW  Artifact [3326b854c7]

Artifact 3326b854c77ed06ff98992112ecdfa1a19e51e062f3bd62af4d49d0e3e1a44e1:

  • File src/OFPlugin.h — part of check-in [179174571e] at 2009-04-19 17:06:46 on branch trunk — Don't use forwarding for OFPlugin.

    This is faster and we don't rely on forwarding which is broken in
    both, the GNU and the Apple runtime. Eventually, there will be an
    implementation for forwarding that does work around the runtime bugs,
    but still, an implementation of OFPlugin without forwarding makes more
    sense. (user: js, size: 652) [annotate] [blame] [check-ins using]


/*
 * Copyright (c) 2008 - 2009
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
 */

#import "OFObject.h"

/**
 * The OFPlugin class provides a system for loading plugins at runtime.
 */
@interface OFPlugin: OFObject
{
	void *handle;
}

/**
 * Loads an OFPlugin from a file.
 *
 * \param path Path to the OFPlugin file. The suffix is appended automatically.
 * \return A new autoreleased OFPlugin
 */
+ pluginFromFile: (const char*)path;
@end