VirtualBox

Changeset 22305 in vbox for trunk/src/VBox/Main/xpcom


Ignore:
Timestamp:
Aug 17, 2009 5:37:41 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51179
Message:

Main: generic callback wrappers mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xpcom/module.cpp

    r19817 r22305  
    4747#include "ConsoleImpl.h"
    4848#include "ConsoleVRDPServer.h"
     49#include "VirtualBoxCallbackImpl.h"
    4950
    5051#include "Logging.h"
     
    7980NS_DECL_CLASSINFO(Console)
    8081NS_IMPL_THREADSAFE_ISUPPORTS1_CI(Console, IConsole)
    81 
     82NS_DECL_CLASSINFO(VirtualBoxCallback)
     83NS_IMPL_THREADSAFE_ISUPPORTS3_CI(VirtualBoxCallback, IVirtualBoxCallback, IConsoleCallback, ILocalOwner)
    8284/**
    8385 *  Singleton class factory that holds a reference to the created instance
     
    134136NS_GENERIC_FACTORY_CONSTRUCTOR_WITH_RC (Session)
    135137
     138NS_GENERIC_FACTORY_CONSTRUCTOR_WITH_RC (VirtualBoxCallback)
     139
    136140
    137141/**
     
    153157        NULL, // language helper
    154158        &NS_CLASSINFO_NAME(Session) // global class info & flags
     159    },
     160    {
     161        "VirtualBoxCallback component", // description
     162        NS_VIRTUALBOXCALLBACK_CID, NS_VIRTUALBOXCALLBACK_CONTRACTID, // CID/ContractID
     163        VirtualBoxCallbackConstructor, // constructor function
     164        NULL, // registration function
     165        NULL, // deregistration function
     166//        SessionClassFactory::releaseInstance,
     167        NULL, // destructor function
     168        NS_CI_INTERFACE_GETTER_NAME(VirtualBoxCallback), // interfaces function
     169        NULL, // language helper
     170        &NS_CLASSINFO_NAME(VirtualBoxCallback) // global class info & flags
    155171    }
     172
    156173};
    157174
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette