gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnokii/include compat.h device.h gnokii.h gnoki...


From: Helge Deller
Subject: gnokii/include compat.h device.h gnokii.h gnoki...
Date: Sun, 11 Jun 2006 16:39:12 +0000

CVSROOT:        /sources/gnokii
Module name:    gnokii
Changes by:     Helge Deller <deller>   06/06/11 16:39:11

Modified files:
        include        : compat.h device.h gnokii.h 
        include/gnokii : bitmaps.h call.h encoding.h error.h networks.h 
                         ringtones.h sms.h statemachine.h virtmodem.h 

Log message:
        replaced usage of "API" with "GNOKII_API"

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/compat.h?cvsroot=gnokii&r1=1.44&r2=1.45
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/device.h?cvsroot=gnokii&r1=1.25&r2=1.26
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii.h?cvsroot=gnokii&r1=1.97&r2=1.98
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/bitmaps.h?cvsroot=gnokii&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/call.h?cvsroot=gnokii&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/encoding.h?cvsroot=gnokii&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/error.h?cvsroot=gnokii&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/networks.h?cvsroot=gnokii&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/ringtones.h?cvsroot=gnokii&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/sms.h?cvsroot=gnokii&r1=1.64&r2=1.65
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/statemachine.h?cvsroot=gnokii&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii/virtmodem.h?cvsroot=gnokii&r1=1.17&r2=1.18

Patches:
Index: compat.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/compat.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- compat.h    22 May 2006 20:00:43 -0000      1.44
+++ compat.h    11 Jun 2006 16:39:11 -0000      1.45
@@ -1,6 +1,6 @@
 /*
 
-  $Id: compat.h,v 1.44 2006/05/22 20:00:43 pkot Exp $
+  $Id: compat.h,v 1.45 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -106,16 +106,16 @@
  */
 #if defined(WIN32)
 #  if defined(GNOKIIDLL_EXPORTS) || defined(_USRDLL) || defined(DLL_EXPORT)
-#    define API __declspec(dllexport)
+#    define GNOKII_API __declspec(dllexport)
 #  elif defined(GNOKIIDLL_IMPORTS)
-#    define API __declspec(dllimport)
+#    define GNOKII_API __declspec(dllimport)
 #  else
-#    define API
+#    define GNOKII_API
 #  endif
 #elif (__GNUC__ - 0 > 3)
-#    define API __attribute__ ((visibility("default")))
+#    define GNOKII_API __attribute__ ((visibility("default")))
 #else
-#    define API
+#    define GNOKII_API
 #endif /* WIN32 */
 
 #ifndef        HAVE_TIMEOPS

Index: device.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/device.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- device.h    23 Apr 2006 21:26:21 -0000      1.25
+++ device.h    11 Jun 2006 16:39:11 -0000      1.26
@@ -1,6 +1,6 @@
 /*
 
-  $Id: device.h,v 1.25 2006/04/23 21:26:21 deller Exp $
+  $Id: device.h,v 1.26 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -40,7 +40,7 @@
 #  include <unistd.h>
 #endif
 
-API int device_getfd(struct gn_statemachine *state);
+GNOKII_API int device_getfd(struct gn_statemachine *state);
 
 int device_open(const char *file, int with_odd_parity, int with_async,
                int with_hw_handshake, gn_connection_type device_type,

Index: gnokii.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -b -r1.97 -r1.98
--- gnokii.h    11 Jun 2006 16:17:25 -0000      1.97
+++ gnokii.h    11 Jun 2006 16:39:11 -0000      1.98
@@ -1,6 +1,6 @@
 /*
 
-  $Id: gnokii.h,v 1.97 2006/06/11 16:17:25 deller Exp $
+  $Id: gnokii.h,v 1.98 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -54,13 +54,13 @@
 
 #include <stdarg.h>
        
-#ifndef API
+#ifndef GNOKII_API
 #  if defined(WIN32) && defined(GNOKIIDLL_IMPORTS)
-#    define API __declspec(dllimport)
+#    define GNOKII_API __declspec(dllimport)
 #  elif (__GNUC__ - 0 > 3)
-#    define API __attribute__ ((visibility("default")))
+#    define GNOKII_API __attribute__ ((visibility("default")))
 #  else
-#    define API
+#    define GNOKII_API
 #  endif
 #endif
 
@@ -92,64 +92,64 @@
 
 /* Gnokii library functions - they all start with gn_lib_ */
 /* Get the current runtime version (LIBGNOKII_VERSION) of libgnokii - see 
LIBGNOKII_MAKE_VERSION() */
-API unsigned int gn_lib_version();
+GNOKII_API unsigned int gn_lib_version();
 
 /* free any ressources which were used by libgnokii */
-API void gn_lib_library_free( void );
+GNOKII_API void gn_lib_library_free( void );
 
 /* return last error code from functions below */
-API gn_error gn_lib_lasterror( struct gn_statemachine *state );
+GNOKII_API gn_error gn_lib_lasterror( struct gn_statemachine *state );
 
 /* initialize gnokii library and structures for given phone.
    configname is the name of the profile, if empty or NULL, [global] will be 
taken  */
-API gn_error gn_lib_phoneprofile_load( const char *configname, struct 
gn_statemachine **state );
+GNOKII_API gn_error gn_lib_phoneprofile_load( const char *configname, struct 
gn_statemachine **state );
 
 /* Free any structures and ressources which were loaded in this state machine. 
*/
-API gn_error gn_lib_phoneprofile_free( struct gn_statemachine **state );
+GNOKII_API gn_error gn_lib_phoneprofile_free( struct gn_statemachine **state );
 
 /* opens connection to the phone. Necessary locking will be made */
-API gn_error gn_lib_phone_open( struct gn_statemachine *state );
+GNOKII_API gn_error gn_lib_phone_open( struct gn_statemachine *state );
 
 /* closes the connection to the phone */
-API gn_error gn_lib_phone_close( struct gn_statemachine *state );
+GNOKII_API gn_error gn_lib_phone_close( struct gn_statemachine *state );
 
 /* ask phone for static information (model, manufacturer, revision and imei) */
-API const char *gn_lib_get_phone_model       ( struct gn_statemachine *state 
); /* e.g. 6310 */
-API const char *gn_lib_get_phone_product_name( struct gn_statemachine *state 
); /* e.g. NPE-4 */
-API const char *gn_lib_get_phone_manufacturer( struct gn_statemachine *state 
); /* e.g. Nokia */
-API const char *gn_lib_get_phone_revision    ( struct gn_statemachine *state 
); /* e.g. V 04.20 */
-API const char *gn_lib_get_phone_imei        ( struct gn_statemachine *state );
+GNOKII_API const char *gn_lib_get_phone_model       ( struct gn_statemachine 
*state ); /* e.g. 6310 */
+GNOKII_API const char *gn_lib_get_phone_product_name( struct gn_statemachine 
*state ); /* e.g. NPE-4 */
+GNOKII_API const char *gn_lib_get_phone_manufacturer( struct gn_statemachine 
*state ); /* e.g. Nokia */
+GNOKII_API const char *gn_lib_get_phone_revision    ( struct gn_statemachine 
*state ); /* e.g. V 04.20 */
+GNOKII_API const char *gn_lib_get_phone_imei        ( struct gn_statemachine 
*state );
 
 /* Get the key value from the given section and the key name */
-API const char *gn_lib_cfg_get(const char *section, const char *key);
+GNOKII_API const char *gn_lib_cfg_get(const char *section, const char *key);
 
 /* Phone Addressbook functions */
 /* get number of used/free phone addressbook memory slots */
-API gn_error gn_lib_addressbook_memstat( struct gn_statemachine *state,
+GNOKII_API gn_error gn_lib_addressbook_memstat( struct gn_statemachine *state,
                const gn_memory_type memory_type,
                int *num_used, int *num_free );
 
 /* remove an addressbook entry physically from phone. */
-API gn_error gn_lib_phonebook_entry_delete( struct gn_statemachine *state,
+GNOKII_API gn_error gn_lib_phonebook_entry_delete( struct gn_statemachine 
*state,
                const gn_memory_type memory_type, const int index );
 
 /* check if given addressbook entry is empty. Returns "true" if empty, 0 if 
not. */
-API int gn_lib_phonebook_entry_isempty( struct gn_statemachine *state,
+GNOKII_API int gn_lib_phonebook_entry_isempty( struct gn_statemachine *state,
                const gn_memory_type memory_type, const int index );
 
 /* read given addressbook entry into internal structure. Afterwards ask for 
each value with functions below */
-API gn_error gn_lib_phonebook_read_entry( struct gn_statemachine *state,
+GNOKII_API gn_error gn_lib_phonebook_read_entry( struct gn_statemachine *state,
                const gn_memory_type memory_type, const int index );
 
 /* after reading an entry with gn_lib_phonebook_read_entry() ask for the 
values of the phonebook entry */
-API const char *            gn_lib_get_pb_name           ( struct 
gn_statemachine *state ); /* Mr. Miller */
-API const char *            gn_lib_get_pb_number         ( struct 
gn_statemachine *state ); /* +18001189383 */
-API gn_phonebook_group_type gn_lib_get_pb_caller_group   ( struct 
gn_statemachine *state ); /* */
-API gn_memory_type          gn_lib_get_pb_memtype        ( struct 
gn_statemachine *state ); /* */
-API int                     gn_lib_get_pb_location       ( struct 
gn_statemachine *state ); /* 1*/
-API gn_timestamp            gn_lib_get_pb_date           ( struct 
gn_statemachine *state ); /* */
-API int                     gn_lib_get_pb_num_subentries ( struct 
gn_statemachine *state ); /* */
-API gn_error   gn_lib_get_pb_subentry( struct gn_statemachine *state, const 
int index, 
+GNOKII_API const char *            gn_lib_get_pb_name           ( struct 
gn_statemachine *state ); /* Mr. Miller */
+GNOKII_API const char *            gn_lib_get_pb_number         ( struct 
gn_statemachine *state ); /* +18001189383 */
+GNOKII_API gn_phonebook_group_type gn_lib_get_pb_caller_group   ( struct 
gn_statemachine *state ); /* */
+GNOKII_API gn_memory_type          gn_lib_get_pb_memtype        ( struct 
gn_statemachine *state ); /* */
+GNOKII_API int                     gn_lib_get_pb_location       ( struct 
gn_statemachine *state ); /* 1*/
+GNOKII_API gn_timestamp            gn_lib_get_pb_date           ( struct 
gn_statemachine *state ); /* */
+GNOKII_API int                     gn_lib_get_pb_num_subentries ( struct 
gn_statemachine *state ); /* */
+GNOKII_API gn_error    gn_lib_get_pb_subentry( struct gn_statemachine *state, 
const int index, 
                        gn_phonebook_entry_type *entry_type, 
gn_phonebook_number_type *number_type, const char **number );
 
 /* How to write to a phonebook entry with 3 steps:
@@ -159,20 +159,20 @@
  */
 
 /* initialize gnokii internal phonebook structure */
-API gn_error gn_lib_phonebook_prepare_write_entry( struct gn_statemachine 
*state );
+GNOKII_API gn_error gn_lib_phonebook_prepare_write_entry( struct 
gn_statemachine *state );
 
 /* call each of the functions to set a specific value in current internal 
memory */
-API gn_error gn_lib_set_pb_name        ( struct gn_statemachine *state, const 
char *name ); /* Mr. Miller */
-API gn_error gn_lib_set_pb_number      ( struct gn_statemachine *state, const 
char *number ); /* +18001189383 */
-API gn_error gn_lib_set_pb_caller_group( struct gn_statemachine *state, 
gn_phonebook_group_type grouptype ); /* */
-API gn_error gn_lib_set_pb_memtype     ( struct gn_statemachine *state, 
gn_memory_type memtype ); /* */
-API gn_error gn_lib_set_pb_location    ( struct gn_statemachine *state, int 
location ); /* 1*/
-API gn_error gn_lib_set_pb_date        ( struct gn_statemachine *state, 
gn_timestamp timestamp ); /* */
-API gn_error gn_lib_set_pb_subentry    ( struct gn_statemachine *state, const 
int index, /* index=-1 appends it */
+GNOKII_API gn_error gn_lib_set_pb_name        ( struct gn_statemachine *state, 
const char *name ); /* Mr. Miller */
+GNOKII_API gn_error gn_lib_set_pb_number      ( struct gn_statemachine *state, 
const char *number ); /* +18001189383 */
+GNOKII_API gn_error gn_lib_set_pb_caller_group( struct gn_statemachine *state, 
gn_phonebook_group_type grouptype ); /* */
+GNOKII_API gn_error gn_lib_set_pb_memtype     ( struct gn_statemachine *state, 
gn_memory_type memtype ); /* */
+GNOKII_API gn_error gn_lib_set_pb_location    ( struct gn_statemachine *state, 
int location ); /* 1*/
+GNOKII_API gn_error gn_lib_set_pb_date        ( struct gn_statemachine *state, 
gn_timestamp timestamp ); /* */
+GNOKII_API gn_error gn_lib_set_pb_subentry    ( struct gn_statemachine *state, 
const int index, /* index=-1 appends it */
        gn_phonebook_entry_type entry_type, gn_phonebook_number_type 
number_type, const char *number );
 
 /* and now write the addressbook entry physically to phone. */
-API gn_error gn_lib_phonebook_write_entry( struct gn_statemachine *state,
+GNOKII_API gn_error gn_lib_phonebook_write_entry( struct gn_statemachine 
*state,
         const gn_memory_type memory_type, const int index );
 
 
@@ -181,15 +181,15 @@
 
 /* use this function to get list of all supported phone models.
    Just start with num=0 and increase until you get back NULL */
-API const char *gn_lib_get_supported_phone_model( const int num );
+GNOKII_API const char *gn_lib_get_supported_phone_model( const int num );
 
 /* Misc */
-API gn_memory_type gn_str2memory_type(const char *s);
-API const char *gn_memory_type2str(gn_memory_type mt);
-API int gn_timestamp_isvalid(const gn_timestamp dt);
-API void gn_timestamp_set(gn_timestamp *dt, int year, int month, int day,
+GNOKII_API gn_memory_type gn_str2memory_type(const char *s);
+GNOKII_API const char *gn_memory_type2str(gn_memory_type mt);
+GNOKII_API int gn_timestamp_isvalid(const gn_timestamp dt);
+GNOKII_API void gn_timestamp_set(gn_timestamp *dt, int year, int month, int 
day,
                        int hour, int minute, int second, int timezone);
-API void gn_timestamp_get(gn_timestamp *dt, int *year, int *month, int *day,
+GNOKII_API void gn_timestamp_get(gn_timestamp *dt, int *year, int *month, int 
*day,
                        int *hour, int *minute, int *second, int *timezone);
 
 
@@ -215,93 +215,93 @@
 
 /* The global variable that keeps the current configuration. This should be
  * filled in before the phone initialization */
-extern API struct gn_cfg_header *gn_cfg_info GNOKII_DEPRECATED;
+extern GNOKII_API struct gn_cfg_header *gn_cfg_info GNOKII_DEPRECATED;
 
 /* Files */
-API int gn_file_text_save(char *filename, char *text, int mode) 
GNOKII_DEPRECATED;
+GNOKII_API int gn_file_text_save(char *filename, char *text, int mode) 
GNOKII_DEPRECATED;
 
 /* Zero the gn_data structure */
-API void gn_data_clear(gn_data *data);
-extern API gn_phone *gn_gsm_info;
-extern API gn_error (*gn_gsm_f)(gn_operation op, gn_data *data,
+GNOKII_API void gn_data_clear(gn_data *data);
+extern GNOKII_API gn_phone *gn_gsm_info;
+extern GNOKII_API gn_error (*gn_gsm_f)(gn_operation op, gn_data *data,
                         struct gn_statemachine *state);
 /* Initialise the connection and setup the driver according to the current
  * configuration */
-API gn_error gn_gsm_initialise(struct gn_statemachine *sm) GNOKII_DEPRECATED;
+GNOKII_API gn_error gn_gsm_initialise(struct gn_statemachine *sm) 
GNOKII_DEPRECATED;
 
 /* Config handling */
 /* Get the key value from the given config, given section and the key name */
-API char *gn_cfg_get(struct gn_cfg_header *cfg, const char *section, const 
char *key) GNOKII_DEPRECATED;
-API int gn_cfg_read(char **bindir) GNOKII_DEPRECATED;
+GNOKII_API char *gn_cfg_get(struct gn_cfg_header *cfg, const char *section, 
const char *key) GNOKII_DEPRECATED;
+GNOKII_API int gn_cfg_read(char **bindir) GNOKII_DEPRECATED;
 /* Read the config from the file filename */
-API int gn_cfg_file_read(const char *filename) GNOKII_DEPRECATED;
+GNOKII_API int gn_cfg_file_read(const char *filename) GNOKII_DEPRECATED;
 /* Read the config from the file already put into the memory */
-API int gn_cfg_memory_read(const char **lines) GNOKII_DEPRECATED;
+GNOKII_API int gn_cfg_memory_read(const char **lines) GNOKII_DEPRECATED;
 /* Read the config from the standard $HOME/.gnokiirc or /etc/gnokiirc 
locations */
-API int gn_cfg_read_default() GNOKII_DEPRECATED;
+GNOKII_API int gn_cfg_read_default() GNOKII_DEPRECATED;
 /* free any ressources which were used by libgnokii */
-API void gn_cfg_free_default() GNOKII_DEPRECATED;
+GNOKII_API void gn_cfg_free_default() GNOKII_DEPRECATED;
 /* Use phone_iname section for the communication. Default is the global 
section */
-API int gn_cfg_phone_load(const char *iname, struct gn_statemachine *state) 
GNOKII_DEPRECATED;
+GNOKII_API int gn_cfg_phone_load(const char *iname, struct gn_statemachine 
*state) GNOKII_DEPRECATED;
 
 /* In/Out routines, file formats */
-API int gn_phonebook2vcard(FILE *f, gn_phonebook_entry *entry, char *location);
-API int gn_vcard2phonebook(FILE *f, gn_phonebook_entry *entry);
+GNOKII_API int gn_phonebook2vcard(FILE *f, gn_phonebook_entry *entry, char 
*location);
+GNOKII_API int gn_vcard2phonebook(FILE *f, gn_phonebook_entry *entry);
 
-API int gn_phonebook2ldif(FILE *f, gn_phonebook_entry *entry);
-API int gn_ldif2phonebook(FILE *f, gn_phonebook_entry *entry);
+GNOKII_API int gn_phonebook2ldif(FILE *f, gn_phonebook_entry *entry);
+GNOKII_API int gn_ldif2phonebook(FILE *f, gn_phonebook_entry *entry);
 
 /* reads internal gnokii raw phonebook format */
-API gn_error gn_file_phonebook_raw_parse(gn_phonebook_entry *entry, char 
*buffer);
-API gn_error gn_file_phonebook_raw_write(FILE *f, gn_phonebook_entry *entry, 
char *memory_type_string);
+GNOKII_API gn_error gn_file_phonebook_raw_parse(gn_phonebook_entry *entry, 
char *buffer);
+GNOKII_API gn_error gn_file_phonebook_raw_write(FILE *f, gn_phonebook_entry 
*entry, char *memory_type_string);
 
 /* DEPRECATED */
-API int gn_vcal_file_event_read(char *filename, gn_calnote *cnote, int number) 
GNOKII_DEPRECATED;
-API int gn_vcal_file_todo_read(char *filename, gn_todo *ctodo, int number) 
GNOKII_DEPRECATED;
+GNOKII_API int gn_vcal_file_event_read(char *filename, gn_calnote *cnote, int 
number) GNOKII_DEPRECATED;
+GNOKII_API int gn_vcal_file_todo_read(char *filename, gn_todo *ctodo, int 
number) GNOKII_DEPRECATED;
 
-API int gn_calnote2ical(FILE *f, gn_calnote *calnote);
-API int gn_ical2calnote(FILE *f, gn_calnote *calnote, int id);
+GNOKII_API int gn_calnote2ical(FILE *f, gn_calnote *calnote);
+GNOKII_API int gn_ical2calnote(FILE *f, gn_calnote *calnote, int id);
 
-API int gn_todo2ical(FILE *f, gn_todo *ctodo);
-API int gn_ical2todo(FILE *f, gn_todo *ctodo, int id);
+GNOKII_API int gn_todo2ical(FILE *f, gn_todo *ctodo);
+GNOKII_API int gn_ical2todo(FILE *f, gn_todo *ctodo, int id);
 
-API void gn_number_sanitize(char *number, int maxlen);
-API void gn_phonebook_entry_sanitize(gn_phonebook_entry *entry);
+GNOKII_API void gn_number_sanitize(char *number, int maxlen);
+GNOKII_API void gn_phonebook_entry_sanitize(gn_phonebook_entry *entry);
 
 /* Debugging */
-extern API gn_log_target gn_log_debug_mask;
-extern API gn_log_target gn_log_rlpdebug_mask;
-extern API gn_log_target gn_log_xdebug_mask;
-extern API void (*gn_elog_handler)(const char *fmt, va_list ap);
-API void gn_log_debug(const char *fmt, ...);
-API void gn_log_rlpdebug(const char *fmt, ...);
-API void gn_log_xdebug(const char *fmt, ...);
-API void gn_elog_write(const char *fmt, ...);
+extern GNOKII_API gn_log_target gn_log_debug_mask;
+extern GNOKII_API gn_log_target gn_log_rlpdebug_mask;
+extern GNOKII_API gn_log_target gn_log_xdebug_mask;
+extern GNOKII_API void (*gn_elog_handler)(const char *fmt, va_list ap);
+GNOKII_API void gn_log_debug(const char *fmt, ...);
+GNOKII_API void gn_log_rlpdebug(const char *fmt, ...);
+GNOKII_API void gn_log_xdebug(const char *fmt, ...);
+GNOKII_API void gn_elog_write(const char *fmt, ...);
 typedef void (*gn_log_func_t)(const char *fmt, ...);
 
-API int gn_line_get(FILE *file, char *line, int count) GNOKII_DEPRECATED;
+GNOKII_API int gn_line_get(FILE *file, char *line, int count) 
GNOKII_DEPRECATED;
 
 /* Place a lock for the given device in /var/lock or /var/run */
-API char *gn_device_lock(const char *) GNOKII_DEPRECATED;
+GNOKII_API char *gn_device_lock(const char *) GNOKII_DEPRECATED;
 /* Remove a lock for the given device from /var/lock or /var/run */
-API int gn_device_unlock(char *) GNOKII_DEPRECATED;
+GNOKII_API int gn_device_unlock(char *) GNOKII_DEPRECATED;
 
-API const char *gn_model_get(const char *product_name);
-API gn_phone_model *gn_phone_model_get(const char *product_name);
+GNOKII_API const char *gn_model_get(const char *product_name);
+GNOKII_API gn_phone_model *gn_phone_model_get(const char *product_name);
 
 /* SMS */
-API gn_error gn_sms_send(gn_data *data, struct gn_statemachine *state);
-API gn_error gn_sms_save(gn_data *data, struct gn_statemachine *state);
-API gn_error gn_sms_get(gn_data *data, struct gn_statemachine *state);
-API gn_error gn_sms_get_no_validate(gn_data *data, struct gn_statemachine 
*state);
-API gn_error gn_sms_get_folder_changes(gn_data *data, struct gn_statemachine 
*state,
+GNOKII_API gn_error gn_sms_send(gn_data *data, struct gn_statemachine *state);
+GNOKII_API gn_error gn_sms_save(gn_data *data, struct gn_statemachine *state);
+GNOKII_API gn_error gn_sms_get(gn_data *data, struct gn_statemachine *state);
+GNOKII_API gn_error gn_sms_get_no_validate(gn_data *data, struct 
gn_statemachine *state);
+GNOKII_API gn_error gn_sms_get_folder_changes(gn_data *data, struct 
gn_statemachine *state,
                                       int has_folders);
-API gn_error gn_sms_delete(gn_data *data, struct gn_statemachine *state);
-API gn_error gn_sms_delete_no_validate(gn_data *data, struct gn_statemachine 
*state);
+GNOKII_API gn_error gn_sms_delete(gn_data *data, struct gn_statemachine 
*state);
+GNOKII_API gn_error gn_sms_delete_no_validate(gn_data *data, struct 
gn_statemachine *state);
 
 /* Call service */
-API gn_error gn_call_dial(int *call_id, gn_data *data, struct gn_statemachine 
*state);
-API gn_error gn_call_check_active(struct gn_statemachine *state);
+GNOKII_API gn_error gn_call_dial(int *call_id, gn_data *data, struct 
gn_statemachine *state);
+GNOKII_API gn_error gn_call_check_active(struct gn_statemachine *state);
 
 #ifdef __cplusplus
 }

Index: gnokii/bitmaps.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/bitmaps.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- gnokii/bitmaps.h    24 Apr 2005 19:41:23 -0000      1.29
+++ gnokii/bitmaps.h    11 Jun 2006 16:39:11 -0000      1.30
@@ -1,6 +1,6 @@
 /*
 
-  $Id: bitmaps.h,v 1.29 2005/04/24 19:41:23 pkot Exp $
+  $Id: bitmaps.h,v 1.30 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -74,19 +74,19 @@
        unsigned char ringtone_id[6];
 } gn_bmp;
 
-API gn_error gn_file_bitmap_read(char *filename, gn_bmp *bitmap, gn_phone 
*info);
-API gn_error gn_file_bitmap_save(char *filename, gn_bmp *bitmap, gn_phone 
*info);
-API gn_error gn_file_bitmap_show(char *filename);
-
-API gn_error gn_bmp_null(gn_bmp *bmp, gn_phone *info);
-API void gn_bmp_point_set(gn_bmp *bmp, int x, int y);
-API void gn_bmp_point_clear(gn_bmp *bmp, int x, int y);
-API int  gn_bmp_point(gn_bmp *bmp, int x, int y);
-API void gn_bmp_clear(gn_bmp *bmp);
-API void gn_bmp_resize(gn_bmp *bitmap, gn_bmp_types target, gn_phone *info);
-API void gn_bmp_print(gn_bmp *bitmap, FILE *f);
+GNOKII_API gn_error gn_file_bitmap_read(char *filename, gn_bmp *bitmap, 
gn_phone *info);
+GNOKII_API gn_error gn_file_bitmap_save(char *filename, gn_bmp *bitmap, 
gn_phone *info);
+GNOKII_API gn_error gn_file_bitmap_show(char *filename);
+
+GNOKII_API gn_error gn_bmp_null(gn_bmp *bmp, gn_phone *info);
+GNOKII_API void gn_bmp_point_set(gn_bmp *bmp, int x, int y);
+GNOKII_API void gn_bmp_point_clear(gn_bmp *bmp, int x, int y);
+GNOKII_API int  gn_bmp_point(gn_bmp *bmp, int x, int y);
+GNOKII_API void gn_bmp_clear(gn_bmp *bmp);
+GNOKII_API void gn_bmp_resize(gn_bmp *bitmap, gn_bmp_types target, gn_phone 
*info);
+GNOKII_API void gn_bmp_print(gn_bmp *bitmap, FILE *f);
 
-API int gn_bmp_sms_encode(gn_bmp *bitmap, unsigned char *message);
-API gn_error gn_bmp_sms_read(int type, unsigned char *message, unsigned char 
*code, gn_bmp *bitmap);
+GNOKII_API int gn_bmp_sms_encode(gn_bmp *bitmap, unsigned char *message);
+GNOKII_API gn_error gn_bmp_sms_read(int type, unsigned char *message, unsigned 
char *code, gn_bmp *bitmap);
 
 #endif /* _gnokii_bitmaps_h */

Index: gnokii/call.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/call.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- gnokii/call.h       24 Apr 2005 19:41:23 -0000      1.12
+++ gnokii/call.h       11 Jun 2006 16:39:11 -0000      1.13
@@ -1,6 +1,6 @@
 /*
 
-  $Id: call.h,v 1.12 2005/04/24 19:41:23 pkot Exp $
+  $Id: call.h,v 1.13 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -90,9 +90,9 @@
 
 #define        GN_CALL_MAX_PARALLEL 2
 
-API void gn_call_notifier(gn_call_status call_status, gn_call_info *call_info, 
struct gn_statemachine *state);
-API gn_call *gn_call_get_active(int call_id);
-API gn_error gn_call_answer(int call_id);
-API gn_error gn_call_cancel(int call_id);
+GNOKII_API void gn_call_notifier(gn_call_status call_status, gn_call_info 
*call_info, struct gn_statemachine *state);
+GNOKII_API gn_call *gn_call_get_active(int call_id);
+GNOKII_API gn_error gn_call_answer(int call_id);
+GNOKII_API gn_error gn_call_cancel(int call_id);
 
 #endif /* _gnokii_call_h */

Index: gnokii/encoding.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/encoding.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- gnokii/encoding.h   3 May 2006 17:45:37 -0000       1.19
+++ gnokii/encoding.h   11 Jun 2006 16:39:11 -0000      1.20
@@ -1,6 +1,6 @@
 /*
 
-  $Id: encoding.h,v 1.19 2006/05/03 17:45:37 pkot Exp $
+  $Id: encoding.h,v 1.20 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -32,7 +32,7 @@
 #ifndef _gnokii_encoding_h
 #define _gnokii_encoding_h
 
-API int gn_char_def_alphabet(unsigned char *string);
+GNOKII_API int gn_char_def_alphabet(unsigned char *string);
 
 /*
  *
@@ -52,7 +52,7 @@
  *     encoding     The name of the encoding (length must not exceed 63 chars)
  *
  */
-API void gn_char_set_encoding(const char* encoding);
-API const char *gn_char_get_encoding();
+GNOKII_API void gn_char_set_encoding(const char* encoding);
+GNOKII_API const char *gn_char_get_encoding();
 
 #endif /* _gnokii_encoding_h */

Index: gnokii/error.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/error.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- gnokii/error.h      24 Apr 2005 19:41:23 -0000      1.18
+++ gnokii/error.h      11 Jun 2006 16:39:11 -0000      1.19
@@ -1,6 +1,6 @@
 /*
 
-  $Id: error.h,v 1.18 2005/04/24 19:41:23 pkot Exp $
+  $Id: error.h,v 1.19 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -81,6 +81,6 @@
        GN_ERR_CODEREQUIRED             /* PIN or PUK code required */
 } gn_error;
 
-API char *gn_error_print(gn_error e);
+GNOKII_API char *gn_error_print(gn_error e);
 
 #endif /* _gnokii_error_h */

Index: gnokii/networks.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/networks.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- gnokii/networks.h   24 Apr 2005 19:41:23 -0000      1.13
+++ gnokii/networks.h   11 Jun 2006 16:39:11 -0000      1.14
@@ -1,6 +1,6 @@
 /*
 
-  $Id: networks.h,v 1.13 2005/04/24 19:41:23 pkot Exp $
+  $Id: networks.h,v 1.14 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -44,16 +44,16 @@
        char *name; /* GSM country name */
 } gn_country;
 
-API char *gn_network_name_get(char *network_code);
-API char *gn_network_code_get(char *network_name);
-API char *gn_network_code_find(char *network_name, char *country_name);
+GNOKII_API char *gn_network_name_get(char *network_code);
+GNOKII_API char *gn_network_code_get(char *network_name);
+GNOKII_API char *gn_network_code_find(char *network_name, char *country_name);
 
-API char *gn_country_name_get(char *country_code);
-API char *gn_country_code_get(char *country_name);
+GNOKII_API char *gn_country_name_get(char *country_code);
+GNOKII_API char *gn_country_code_get(char *country_name);
 
-API int gn_network_get(gn_network *network, int index);
-API int gn_country_get(gn_country *country, int index);
+GNOKII_API int gn_network_get(gn_network *network, int index);
+GNOKII_API int gn_country_get(gn_country *country, int index);
 
-API char *gn_network2country(char *network);
+GNOKII_API char *gn_network2country(char *network);
 
 #endif /* _gnokii_networks_h */

Index: gnokii/ringtones.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/ringtones.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- gnokii/ringtones.h  18 Mar 2006 17:19:28 -0000      1.20
+++ gnokii/ringtones.h  11 Jun 2006 16:39:11 -0000      1.21
@@ -1,6 +1,6 @@
 /*
 
-  $Id: ringtones.h,v 1.20 2006/03/18 17:19:28 pkot Exp $
+  $Id: ringtones.h,v 1.21 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -149,13 +149,13 @@
 /* From PC Composer help */
 #define GN_RINGTONE_NOTES_MAX_NUMBER 130
 
-API gn_error gn_file_ringtone_read(char *filename, gn_ringtone *ringtone);
-API gn_error gn_file_ringtone_save(char *filename, gn_ringtone *ringtone);
+GNOKII_API gn_error gn_file_ringtone_read(char *filename, gn_ringtone 
*ringtone);
+GNOKII_API gn_error gn_file_ringtone_save(char *filename, gn_ringtone 
*ringtone);
 
-API unsigned char gn_ringtone_pack(gn_ringtone *ringtone, unsigned char 
*package, int *maxlength);
-API gn_error gn_ringtone_unpack(gn_ringtone *ringtone, unsigned char *package, 
int maxlength);
-API int gn_note_get(int number);
-API void gn_ringtone_get_tone(const gn_ringtone *ringtone, int n, int *freq, 
int *ulen);
-API void gn_ringtone_set_duration(gn_ringtone *ringtone, int n, int ulen);
+GNOKII_API unsigned char gn_ringtone_pack(gn_ringtone *ringtone, unsigned char 
*package, int *maxlength);
+GNOKII_API gn_error gn_ringtone_unpack(gn_ringtone *ringtone, unsigned char 
*package, int maxlength);
+GNOKII_API int gn_note_get(int number);
+GNOKII_API void gn_ringtone_get_tone(const gn_ringtone *ringtone, int n, int 
*freq, int *ulen);
+GNOKII_API void gn_ringtone_set_duration(gn_ringtone *ringtone, int n, int 
ulen);
 
 #endif /* _gnokii_ringtones_h */

Index: gnokii/sms.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/sms.h,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -b -r1.64 -r1.65
--- gnokii/sms.h        24 Mar 2006 22:35:18 -0000      1.64
+++ gnokii/sms.h        11 Jun 2006 16:39:11 -0000      1.65
@@ -1,6 +1,6 @@
 /*
 
-  $Id: sms.h,v 1.64 2006/03/24 22:35:18 pkot Exp $
+  $Id: sms.h,v 1.65 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -457,7 +457,7 @@
        int is_new;
 } gn_cb_message;
 
-API void gn_sms_default_submit(gn_sms *sms);
-API void gn_sms_default_deliver(gn_sms *sms);
+GNOKII_API void gn_sms_default_submit(gn_sms *sms);
+GNOKII_API void gn_sms_default_deliver(gn_sms *sms);
 
 #endif /* _gnokii_sms_h */

Index: gnokii/statemachine.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/statemachine.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- gnokii/statemachine.h       25 Apr 2006 18:38:25 -0000      1.24
+++ gnokii/statemachine.h       11 Jun 2006 16:39:11 -0000      1.25
@@ -1,6 +1,6 @@
 /*
 
-  $Id: statemachine.h,v 1.24 2006/04/25 18:38:25 deller Exp $
+  $Id: statemachine.h,v 1.25 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -96,9 +96,9 @@
        } u;
 };
 
-API gn_state gn_sm_loop(int timeout, struct gn_statemachine *state);
+GNOKII_API gn_state gn_sm_loop(int timeout, struct gn_statemachine *state);
 
 /* General way to call any driver function */
-API gn_error gn_sm_functions(gn_operation op, gn_data *data, struct 
gn_statemachine *sm);
+GNOKII_API gn_error gn_sm_functions(gn_operation op, gn_data *data, struct 
gn_statemachine *sm);
 
 #endif /* _gnokii_statemachine_h */

Index: gnokii/virtmodem.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii/virtmodem.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- gnokii/virtmodem.h  8 May 2006 19:32:25 -0000       1.17
+++ gnokii/virtmodem.h  11 Jun 2006 16:39:11 -0000      1.18
@@ -1,6 +1,6 @@
 /*
 
-  $Id: virtmodem.h,v 1.17 2006/05/08 19:32:25 deller Exp $
+  $Id: virtmodem.h,v 1.18 2006/06/11 16:39:11 deller Exp $
 
   G N O K I I
 
@@ -43,11 +43,11 @@
 extern struct vm_queue queue;
 
 /* Prototypes */
-API int gn_vm_initialise(const char *iname,
+GNOKII_API int gn_vm_initialise(const char *iname,
                         const char *bindir,
                         int debug_mode,
                         int gn_init);
-API void gn_vm_loop(void);
-API void gn_vm_terminate(void);
+GNOKII_API void gn_vm_loop(void);
+GNOKII_API void gn_vm_terminate(void);
 
 #endif /* _gnokii_virtmodem_h */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]