VirtualBox

Changeset 16483 in vbox for trunk/src/VBox/Main/cbinding


Ignore:
Timestamp:
Feb 3, 2009 10:52:11 AM (16 years ago)
Author:
vboxsync
Message:
  • Renamed tstLinuxC.h to cbinding.h
  • added doxygen @file tags and description
  • added copyright notice boilerplate
Location:
trunk/src/VBox/Main/cbinding
Files:
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/Makefile.kmk

    r16431 r16483  
    3434XpComCSamples_SOURCES = \
    3535        tstLinuxC.c \
    36         tstLinuxC.h \
     36        cbinding.h \
    3737        makefile.tstLinuxC=>Makefile
    3838
  • trunk/src/VBox/Main/cbinding/cbinding.h

    r16478 r16483  
    1 #ifndef __tstLinuxC_h__
    2 #define __tstLinuxC_h__
     1/** @file cbinding.h
     2 *
     3 * C binding for XPCOM.
     4 *
     5 * $Id$
     6 */
     7
     8#ifndef __cbinding_h__
     9#define __cbinding_h__
     10
     11/*
     12 * Copyright (C) 2009 Sun Microsystems, Inc.
     13 *
     14 * This file is part of VirtualBox Open Source Edition (OSE), as
     15 * available from http://www.virtualbox.org. This file is free software;
     16 * you can redistribute it and/or modify it under the terms of the GNU
     17 * General Public License (GPL) as published by the Free Software
     18 * Foundation, in version 2 as it comes in the "COPYING" file of the
     19 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     20 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     21 *
     22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     23 * Clara, CA 95054 USA or visit http://www.sun.com if you need
     24 * additional information or have any questions.
     25 */
    326
    427#ifdef __cplusplus
     
    3558#endif
    3659
    37 #endif /* __tstLinuxC_h__ */
     60#endif /* __cbinding_h__ */
  • trunk/src/VBox/Main/cbinding/libXPCOMtoC.cpp

    r16406 r16483  
     1/** @file libXPCOMtoC.cpp
     2 *
     3 * Utility functions to use with the C binding for XPCOM.
     4 *
     5 * $Id$
     6 */
     7
     8/*
     9 * Copyright (C) 2009 Sun Microsystems, Inc.
     10 *
     11 * This file is part of VirtualBox Open Source Edition (OSE), as
     12 * available from http://www.virtualbox.org. This file is free software;
     13 * you can redistribute it and/or modify it under the terms of the GNU
     14 * General Public License (GPL) as published by the Free Software
     15 * Foundation, in version 2 as it comes in the "COPYING" file of the
     16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     18 *
     19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     20 * Clara, CA 95054 USA or visit http://www.sun.com if you need
     21 * additional information or have any questions.
     22 */
     23
    124#include <iostream>
    225#include <iomanip>
     
    1033
    1134#include "VirtualBox_XPCOM.h"
    12 #include "tstLinuxC.h"
     35#include "cbinding.h"
    1336
    1437using namespace std;
  • trunk/src/VBox/Main/cbinding/makefile.tstLinuxC

    r16454 r16483  
    11# $Id: Makefile 42209 2009-01-29 12:22:10Z jens $
     2#
     3## @file makefile.tstLinuxC
     4#
     5# Makefile for sample program illustrating use of C binding for XPCOM.
     6
     7#
     8# Copyright (C) 2009 Sun Microsystems, Inc.
     9#
     10# This file is part of VirtualBox Open Source Edition (OSE), as
     11# available from http://www.virtualbox.org. This file is free software;
     12# you can redistribute it and/or modify it under the terms of the GNU
     13# General Public License (GPL) as published by the Free Software
     14# Foundation, in version 2 as it comes in the "COPYING" file of the
     15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     17#
     18# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     19# Clara, CA 95054 USA or visit http://www.sun.com if you need
     20# additional information or have any questions.
     21#
    222
    323PATH_XPCOM = ../..
     
    2444        $(CC) -o $@ $^ -Xlinker -rpath -Xlinker $(PATH_BIN) $(PATH_BIN)/VBoxXPCOMC.so
    2545
    26 tstLinuxC.o: tstLinuxC.c tstLinuxC.h
     46tstLinuxC.o: tstLinuxC.c cbinding.h
    2747        $(CC) $(CFLAGS) -DRT_OS_LINUX -DMOZ_UNICODE $(INCS_XPCOM) -o $@ -c $<
    2848
  • trunk/src/VBox/Main/cbinding/tstLinuxC.c

    r16406 r16483  
    55 *
    66 * $Id$
     7 */
     8
     9/*
     10 * Copyright (C) 2009 Sun Microsystems, Inc.
     11 *
     12 * This file is part of VirtualBox Open Source Edition (OSE), as
     13 * available from http://www.virtualbox.org. This file is free software;
     14 * you can redistribute it and/or modify it under the terms of the GNU
     15 * General Public License (GPL) as published by the Free Software
     16 * Foundation, in version 2 as it comes in the "COPYING" file of the
     17 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     18 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     19 *
     20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     21 * Clara, CA 95054 USA or visit http://www.sun.com if you need
     22 * additional information or have any questions.
    723 */
    824
     
    1127#include <stdlib.h>
    1228#include <iconv.h>
    13 #include "tstLinuxC.h"
     29#include "cbinding.h"
    1430
    1531static char *nsIDToString(nsID *guid);
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