| 1 |
/* ______ ___ ___ |
| 2 |
* /\ _ \ /\_ \ /\_ \ |
| 3 |
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ |
| 4 |
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ |
| 5 |
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ |
| 6 |
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ |
| 7 |
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/ |
| 8 |
* /\____/ |
| 9 |
* \_/__/ |
| 10 |
* |
| 11 |
* Dynamic driver lists shared by Unixy system drivers. |
| 12 |
* |
| 13 |
* By Peter Wang. |
| 14 |
* |
| 15 |
* See readme.txt for copyright information. |
| 16 |
*/ |
| 17 |
|
| 18 |
#include "allegro5/allegro.h" |
| 19 |
#include "allegro5/internal/aintern.h" |
| 20 |
#include "allegro5/internal/aintern_bitmap.h" |
| 21 |
#include "allegro5/internal/aintern_system.h" |
| 22 |
|
| 23 |
#if defined ALLEGRO_WITH_XWINDOWS |
| 24 |
#ifndef ALLEGRO_RASPBERRYPI |
| 25 |
#include "allegro5/platform/aintxglx.h" |
| 26 |
#else |
| 27 |
#include "allegro5/internal/aintern_raspberrypi.h" |
| 28 |
#endif |
| 29 |
#endif |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
/* This is a function each platform must define to register all available |
| 34 |
* system drivers. |
| 35 |
*/ |
| 36 |
void _al_register_system_interfaces(void) |
| 37 |
{ |
| 38 |
ALLEGRO_SYSTEM_INTERFACE **add; |
| 39 |
#if defined ALLEGRO_WITH_XWINDOWS && !defined ALLEGRO_RASPBERRYPI |
| 40 |
add = _al_vector_alloc_back(&_al_system_interfaces); |
| 41 |
*add = _al_system_xglx_driver(); |
| 42 |
#elif defined ALLEGRO_RASPBERRYPI |
| 43 |
add = _al_vector_alloc_back(&_al_system_interfaces); |
| 44 |
*add = _al_system_raspberrypi_driver(); |
| 45 |
#endif |
| 46 |
} |
| 47 |
|