4 #include <bonobo/bonobo-shlib-factory.h>
5 #include "gnome-moniker-std.h"
8 bonobo_std_moniker_factory (BonoboGenericFactory *this,
12 g_return_val_if_fail (object_id != NULL, NULL);
14 if (!strcmp (object_id, "OAFIID:GNOME_VFS_Moniker_File"))
16 return BONOBO_OBJECT (bonobo_moniker_simple_new (
17 "file:", bonobo_moniker_file_resolve));
19 else if (!strcmp (object_id, "OAFIID:GNOME_VFS_Moniker_VFS"))
21 return BONOBO_OBJECT (bonobo_moniker_simple_new (
22 "vfs:", bonobo_moniker_vfs_resolve));
24 else if (!strcmp (object_id, "OAFIID:GNOME_VFS_MonikerExtender_file"))
26 return BONOBO_OBJECT (bonobo_moniker_extender_new (
27 bonobo_file_extender_resolve, NULL));
30 g_warning ("Failing to manufacture a '%s'", object_id);
36 BONOBO_OAF_SHLIB_FACTORY_MULTI ("OAFIID:GNOME_VFS_Moniker_std_Factory",
37 "bonobo standard moniker",
38 bonobo_std_moniker_factory,