Use a private header for the private EEPROM structures
[libftdi] / ftdipp / ftdi.cpp
index 357393c..18dd81c 100644 (file)
@@ -27,6 +27,7 @@ This exception does not invalidate any other reasons why a work based
 on this file might be covered by the GNU General Public License.
 */
 #include "ftdi.hpp"
+#include "ftdi_i.h"
 #include "ftdi.h"
 
 namespace Ftdi
@@ -393,7 +394,7 @@ Eeprom::~Eeprom()
 {
 }
 
-void Eeprom::init_defaults(char* manufacturer, char *product, char * serial)
+int Eeprom::init_defaults(char* manufacturer, char *product, char * serial)
 {
     return ftdi_eeprom_initdefaults(d->context, manufacturer, product, serial);
 }