Commit ae4735e7 authored by Tristan Matthews's avatar Tristan Matthews

* #19035: addressbook: use const gchar * parameter

parent 08ddbf7a
......@@ -83,7 +83,7 @@ struct AddrBookHandle {
void (*search) (void (*search_cb)(GList *, gpointer), GtkEntry *, AddressBook_Config *);
GSList *(*get_books_data)();
book_data_t *(*get_book_data_by_uid)(gchar *);
void (*set_current_book)(gchar *);
void (*set_current_book)(const gchar *);
void (*set_search_type)(AddrbookSearchType);
void (*search_cb)(GList *, gpointer);
};
......
......@@ -27,8 +27,6 @@
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#include <string.h>
#include <stdio.h>
#include "eds.h"
#include "addressbook.h"
......@@ -108,6 +106,7 @@ void addressbook_set_search_type(AddrbookSearchType searchType) {
set_current_addressbook_test(map[searchType]);
}
void addressbook_set_current_book(gchar *current) {
void addressbook_set_current_book(const gchar *current) {
g_print("Setting addressbook to %s\n", current);
set_current_addressbook(current);
}
......@@ -111,7 +111,7 @@ GSList *addressbook_get_books_data();
book_data_t *addressbook_get_book_data_by_uid(gchar *);
void addressbook_set_current_book(gchar *);
void addressbook_set_current_book(const gchar *);
void addressbook_set_search_type(AddrbookSearchType);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment