| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/PilotPicsAPI.h $ |
| 21 | * $Revision: 2 $ |
| 22 | * $Date: 11/23/98 6:30p $ |
| 23 | * $Author: Jeff $ |
| 24 | * |
| 25 | * API header file for Pilot Pictures |
| 26 | * |
| 27 | * $Log: /DescentIII/Main/PilotPicsAPI.h $ |
| 28 | * |
| 29 | * 2 11/23/98 6:30p Jeff |
| 30 | * initial creation |
| 31 | * |
| 32 | * $NoKeywords: $ |
| 33 | */ |
| 34 | |
| 35 | #ifndef _PILOTPICS_H__ |
| 36 | #define _PILOTPICS_H__cxx . . $ `Descent3/PilotPicsAPI.h:36:9`! |
| 37 | |
| 38 | // --------------------------------------------------------- |
| 39 | // PPic_InitDatabase |
| 40 | // Purpose: |
| 41 | // Initializes the database for the pictures. Call before |
| 42 | // any other Pilot Picture function |
| 43 | // --------------------------------------------------------- |
| 44 | bool PPic_InitDatabasecxx . . $ PPic_InitDatabase(c9857a73d68e59ba).(void); |
| 45 | |
| 46 | // --------------------------------------------------------- |
| 47 | // PPic_CloseDatabase |
| 48 | // Purpose: |
| 49 | // Closes down the picture database. |
| 50 | // --------------------------------------------------------- |
| 51 | void PPic_CloseDatabasecxx . . $ PPic_CloseDatabase(49f6e7a06ebc5aa8).(void); |
| 52 | |
| 53 | // --------------------------------------------------------- |
| 54 | // PPic_QueryPilot |
| 55 | // Purpose: |
| 56 | // Given a pilot callsign it will search the database |
| 57 | // and return the number of pilots that match the name |
| 58 | // --------------------------------------------------------- |
| 59 | uint16_tcxx . . $ uint16_t# PPic_QueryPilotcxx . . $ PPic_QueryPilot(1c09e5b692edaacb).(char *pilot_name); |
| 60 | |
| 61 | // --------------------------------------------------------- |
| 62 | // PPic_FindFirst |
| 63 | // Purpose: |
| 64 | // Given a pilot callsign it will return the first pilot |
| 65 | // that matches the search. Returns true on success, false |
| 66 | // if it couldn't find any pilots matching. It returns |
| 67 | // the pilot id. |
| 68 | // ---------------------------------------------------------- |
| 69 | bool PPic_FindFirstcxx . . $ PPic_FindFirst(b345e33955ddca6f).(char *pilot_name, uint16_tcxx . . $ uint16_t# *pilot_id); |
| 70 | |
| 71 | // ---------------------------------------------------------- |
| 72 | // PPic_FindNext |
| 73 | // Purpose: |
| 74 | // Call repeatedly until false is returned to get information |
| 75 | // about all the pilots that match pilot_name passed into |
| 76 | // an initial call to PPic_FindFirst(). It returns the |
| 77 | // pilot id. |
| 78 | // ---------------------------------------------------------- |
| 79 | bool PPic_FindNextcxx . . $ PPic_FindNext(6bd48caf83be88b2).(uint16_tcxx . . $ uint16_t# *pilot_id); |
| 80 | |
| 81 | // ---------------------------------------------------------- |
| 82 | // PPic_FindClose |
| 83 | // Purpose: |
| 84 | // Stops a PPic_FindFirst/PPic_FindNext session |
| 85 | // ---------------------------------------------------------- |
| 86 | void PPic_FindClosecxx . . $ PPic_FindClose(49f6e7a06ebc5aa8).(void); |
| 87 | |
| 88 | // ---------------------------------------------------------- |
| 89 | // PPic_GetPilot |
| 90 | // Purpose: |
| 91 | // Given a pilot id, it will return the pilot name of |
| 92 | // the pilot name. Returns false if it's an invalid pilot id. |
| 93 | // ---------------------------------------------------------- |
| 94 | bool PPic_GetPilotcxx . . $ PPic_GetPilot(c30de02759139238).(uint16_tcxx . . $ uint16_t# pilot_id, char *pilot_name, int buffersize); |
| 95 | |
| 96 | // ---------------------------------------------------------- |
| 97 | // PPic_GetBitmapHandle |
| 98 | // Purpose: |
| 99 | // Given a pilot id, it will return a handle to the |
| 100 | // bitmap for the pilot. MAKE SURE YOU FREE THE BITMAP WITH |
| 101 | // bm_FreeBitmap(). Returns -1 if it was an illegal pilot id. |
| 102 | // Returns BAD_BITMAP_HANDLE if it couldn't open the bitmap. |
| 103 | // ---------------------------------------------------------- |
| 104 | int PPic_GetBitmapHandlecxx . . $ PPic_GetBitmapHandle(377f6a3136964dac).(uint16_tcxx . . $ uint16_t# pilot_id); |
| 105 | |
| 106 | #endif |