1 /* 2 * This library is free software: you can redistribute it and/or modify it 3 * under the terms of the GNU Lesser General Public License as published by 4 * the Free Software Foundation. 5 * 6 * This library is distributed in the hope that it will be useful, but 7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 8 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 9 * for more details. 10 * 11 * You should have received a copy of the GNU Lesser General Public License 12 * along with this library. If not, see <http://www.gnu.org/licenses/>. 13 */ 14 15 #ifndef __E_NAME_WESTERN_H__ 16 #define __E_NAME_WESTERN_H__ 17 18 #if !defined (__LIBEBOOK_CONTACTS_H_INSIDE__) && !defined (LIBEBOOK_CONTACTS_COMPILATION) 19 #error "Only <libebook-contacts/libebook-contacts.h> should be included directly." 20 #endif 21 22 #include <glib.h> 23 #include <glib-object.h> 24 25 G_BEGIN_DECLS 26 27 typedef struct { 28 29 /* Public */ 30 gchar *prefix; 31 gchar *first; 32 gchar *middle; 33 gchar *nick; 34 gchar *last; 35 gchar *suffix; 36 37 /* Private */ 38 gchar *full; 39 } ENameWestern; 40 41 GType e_name_western_get_type (void) G_GNUC_CONST; 42 ENameWestern *e_name_western_parse (const gchar *full_name); 43 void e_name_western_free (ENameWestern *w); 44 ENameWestern *e_name_western_copy (ENameWestern *w); 45 46 G_END_DECLS 47 48 #endif /* __E_NAME_WESTERN_H__ */ 49