diff include/freeDiameter/libfdcore.h @ 947:cce5d4bace82

Make config file parameter const and convert another fprintf to TRACE_DEBUG_ERROR.
author Thomas Klausner <tk@giga.or.at>
date Wed, 13 Feb 2013 14:47:47 +0100
parents b839a1b1c1da
children 652713ce3596
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h	Tue Feb 12 12:38:32 2013 +0100
+++ b/include/freeDiameter/libfdcore.h	Wed Feb 13 14:47:47 2013 +0100
@@ -86,7 +86,7 @@
 const char *fd_core_version(void);
 
 /* Parse the freeDiameter.conf configuration file, load the extensions */
-int fd_core_parseconf(char * conffile);
+int fd_core_parseconf(const char * conffile);
 
 /* Start the server & client threads */
 int fd_core_start(void);
@@ -110,7 +110,7 @@
 struct fd_config {
 	int		 cnf_eyec;	/* Eye catcher: EYEC_CONFIG */
 	
-	char		*cnf_file;	/* Configuration file to parse, default is DEFAULT_CONF_FILE */
+	const char	*cnf_file;	/* Configuration file to parse, default is DEFAULT_CONF_FILE */
 	
 	DiamId_t  	 cnf_diamid;	/* Diameter Identity of the local peer (FQDN -- ASCII) */
 	size_t		 cnf_diamid_len;/* cached length of the previous string */
@@ -349,7 +349,7 @@
  *  (other standard errors may be returned, too, with their standard meaning. Example:
  *    ENOMEM 	: Memory allocation for the new object element failed.)
  */
-int fd_peer_add ( struct peer_info * info, char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data );
+int fd_peer_add ( struct peer_info * info, const char * orig_dbg, void (*cb)(struct peer_info *, void *), void * cb_data );
 
 /*
  * FUNCTION:	fd_peer_getbyid
"Welcome to our mercurial repository"