Warning: mysqli_real_connect(): Headers and client library minor version mismatch. Headers:50625 Library:50543 in /sites/rockbox.org/flyspray/adodb/drivers/adodb-mysqli.inc.php on line 108 FS#10220 : beastpatcher: rework for VS / w32



FS#10220 - beastpatcher: rework for VS / w32

Attached to Project: Rockbox
Opened by Dominik Riebeling (bluebrother) - Tuesday, 19 May 2009, 09:31 GMT
Last edited by Dominik Riebeling (bluebrother) - Monday, 08 June 2009, 18:04 GMT
Task Type Patches
Category Utils
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This is a first try to improve beastpatcher on windows and allow using VS2005:

- VS doesn't support inttypes.h. This patch includes the BSD licensed header pstdint.h from http://www.azillionmonkeys.com/qed/pstdint.h
- VS doesn't support bool when compiling C files. The DLL API has been modified to not return a bool but int instead. The API has been intentionally changed further to break compatibility (functions renamed to use clearer names).
- update the MTP_DLL API to also scan for devices.
- rename MTP/MTP_DLL/sendfirm_win.c to avoid confusion with MTP/sendfirm_win.c and split out the progresshelper class.
- update MTP_DLL.h so it can get used for inclusion in beastpatcher / sendfirm, removing the need to have duplicated extern declarations for the functions exported by the DLL.
- provide a vcproj file for building beastpatcher.
- update MTP_DLL vcproj file to also copy the resulting dll file to the MTP folder for convenience.

This patch still needs some cleanup but it basically works. Also attached an updated DLL build with VS2005.
This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Monday, 08 June 2009, 18:04 GMT
Reason for closing:  Accepted