1e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez/**************************************************************************
2e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez *
3e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * Copyright 2012 Francisco Jerez
4e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * All Rights Reserved.
5e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez *
6e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * Permission is hereby granted, free of charge, to any person obtaining a
7e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * copy of this software and associated documentation files (the
8e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * "Software"), to deal in the Software without restriction, including
9e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * without limitation the rights to use, copy, modify, merge, publish,
10e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * distribute, sub license, and/or sell copies of the Software, and to
11e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * permit persons to whom the Software is furnished to do so, subject to
12e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * the following conditions:
13e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez *
14e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * The above copyright notice and this permission notice (including the
15e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * next paragraph) shall be included in all copies or substantial portions
16e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * of the Software.
17e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez *
18e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez *
26e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez **************************************************************************/
27e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
28e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez#ifndef PIPE_LOADER_PRIV_H
29e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez#define PIPE_LOADER_PRIV_H
30e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
31e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez#include "pipe_loader.h"
32e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
33e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerezstruct pipe_loader_ops {
34e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez   struct pipe_screen *(*create_screen)(struct pipe_loader_device *dev,
35e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez                                        const char *library_paths);
36e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
37e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez   void (*release)(struct pipe_loader_device **dev);
38e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez};
39e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
40e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez/**
41e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez * Open the pipe driver module that handles a specified device.
42e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez */
43e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerezstruct util_dl_library *
44e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerezpipe_loader_find_module(struct pipe_loader_device *dev,
45e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez                        const char *library_paths);
46e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez
47e1364530622a26f11c79694429cf84418a0b7ef7Francisco Jerez#endif /* PIPE_LOADER_PRIV_H */
48