root/src/test/headers.c
| Revision 92fd43285ca7188ce237788dd5172cf3f6071fcc, 1.8 kB (checked in by Rémi Denis-Courmont <rdenis@simphalempin.com>, 3 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /***************************************************************************** |
| 2 | * headers.c: Test for public headers usability |
| 3 | ***************************************************************************** |
| 4 | * Copyright (C) 2007 Rémi Denis-Courmont |
| 5 | * $Id$ |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
| 20 | *****************************************************************************/ |
| 21 | |
| 22 | /* config.h is NOT installed, headers MUST NOT depend on it. |
| 23 | # include <config.h> */ |
| 24 | /* One thing we don't check is the CPPFLAGS - these MUST be exposed publicly, |
| 25 | * e.g. using pkg-config or the broken old vlc-config. */ |
| 26 | |
| 27 | #define PACKAGE "vlc" |
| 28 | |
| 29 | /* Because we are from src/ __LIBVLC__ is defined, but we don't want that, |
| 30 | * as we act here as a third-party program just linking to libvlc */ |
| 31 | #ifdef __LIBVLC__ |
| 32 | # undef __LIBVLC__ |
| 33 | #endif |
| 34 | |
| 35 | #include <vlc/vlc.h> |
| 36 | #include <vlc/deprecated.h> |
| 37 | #include <vlc/libvlc.h> |
| 38 | #include <vlc/libvlc_structures.h> |
| 39 | #include <vlc/libvlc_events.h> |
| 40 | #include <vlc/libvlc_media_list.h> |
| 41 | #include <vlc/libvlc_vlm.h> |
| 42 | #include <vlc/mediacontrol.h> |
| 43 | #include <vlc/mediacontrol_structures.h> |
| 44 | |
| 45 | #include <stdio.h> |
| 46 | |
| 47 | int main (void) |
| 48 | { |
| 49 | puts ("Public headers can be used for external compilation."); |
| 50 | return 0; |
| 51 | } |
| 52 |
Note: See TracBrowser for help on using the browser.
