VirtualBox

Changeset 36536 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Apr 4, 2011 3:43:40 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70962
Message:

include/*: Made the headers build on linux again (kmk -C include).

Location:
trunk/include/VBox/com
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/errorprint.h

    r33766 r36536  
    2828#ifndef ___VBox_com_errorprint_h
    2929#define ___VBox_com_errorprint_h
     30
     31#include <VBox/com/ErrorInfo.h>
    3032
    3133namespace com
  • trunk/include/VBox/com/listeners.h

    r35724 r36536  
    11/* $Id$ */
    22/** @file
    3  *
    43 * Listeners helpers.
    54 */
    65
    76/*
    8  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2011 Oracle Corporation
    98 *
    109 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2827#ifndef ___VBox_com_listeners_h
    2928#define ___VBox_com_listeners_h
     29
    3030#include <VBox/com/com.h>
    31 #include <VBox/com/defs.h>
     31#include <VBox/com/VirtualBox.h>
    3232
    3333#ifdef VBOX_WITH_XPCOM
    34 #define NS_IMPL_QUERY_HEAD_INLINE()                                   \
    35 NS_IMETHODIMP QueryInterface(REFNSIID aIID, void** aInstancePtr)      \
    36 {                                                                     \
    37   NS_ASSERTION(aInstancePtr,                                          \
    38                "QueryInterface requires a non-NULL destination!");    \
    39   nsISupports* foundInterface;
    40 #define NS_INTERFACE_MAP_BEGIN_INLINE()      NS_IMPL_QUERY_HEAD_INLINE()
    41 #define NS_IMPL_QUERY_INTERFACE1_INLINE(_i1)                                 \
    42   NS_INTERFACE_MAP_BEGIN_INLINE()                                            \
    43     NS_INTERFACE_MAP_ENTRY(_i1)                                              \
    44     NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _i1)                       \
    45   NS_INTERFACE_MAP_END
     34# define NS_IMPL_QUERY_HEAD_INLINE() \
     35NS_IMETHODIMP QueryInterface(REFNSIID aIID, void **aInstancePtr) \
     36{ \
     37    NS_ASSERTION(aInstancePtr, "QueryInterface requires a non-NULL destination!"); \
     38    nsISupports *foundInterface;
     39
     40# define NS_INTERFACE_MAP_BEGIN_INLINE()      NS_IMPL_QUERY_HEAD_INLINE()
     41
     42# define NS_IMPL_QUERY_INTERFACE1_INLINE(a_i1) \
     43    NS_INTERFACE_MAP_BEGIN_INLINE() \
     44        NS_INTERFACE_MAP_ENTRY(a_i1) \
     45        NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, a_i1) \
     46    NS_INTERFACE_MAP_END
    4647#endif
    4748
    48 template <class T, class TParam = void* >
     49template <class T, class TParam = void *>
    4950class ListenerImpl :
    5051     public CComObjectRootEx<CComMultiThreadModel>,
     
    163164
    164165#ifdef VBOX_WITH_XPCOM
    165 #define VBOX_LISTENER_DECLARE(klazz) NS_DECL_CLASSINFO(klazz)
     166# define VBOX_LISTENER_DECLARE(klazz) NS_DECL_CLASSINFO(klazz)
    166167#else
    167 #define VBOX_LISTENER_DECLARE(klazz)
     168# define VBOX_LISTENER_DECLARE(klazz)
    168169#endif
    169170
Note: See TracChangeset for help on using the changeset viewer.

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