~vcs-imports/gnome-media/main

« back to all changes in this revision

Viewing changes to cddb-slave2/inetaddr.h

  • Committer: thomasvs
  • Date: 2004-05-10 08:52:25 UTC
  • Revision ID: vcs-imports@canonical.com-20040510085225-zb6tqc12yi1h08gd
remove unneccesary whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Library General Public License for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Library General Public
16
 
 * License along with this library; if not, write to the 
 
16
 * License along with this library; if not, write to the
17
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
18
 * Boston, MA  02111-1307, USA.
19
19
 */
49
49
 
50
50
/**
51
51
 *   GInetAddrAsyncStatus:
52
 
 * 
 
52
 *
53
53
 *   Status of a asynchronous lookup (from gnet_inetaddr_new_async()
54
54
 *   or gnet_inetaddr_get_name_async()), passed by
55
55
 *   GInetAddrNewAsyncFunc or GInetAddrGetNameAsyncFunc.  More errors
66
66
 
67
67
/**
68
68
 *   GInetAddrNewAsyncID:
69
 
 * 
 
69
 *
70
70
 *   ID of an asynchronous InetAddr creation started with
71
71
 *   gnet_inetaddr_new_async().  The creation can be canceled by
72
72
 *   calling gnet_inetaddr_new_async_cancel() with the ID.
81
81
 *   @inetaddr: InetAddr that was looked up
82
82
 *   @status: Status of the lookup
83
83
 *   @data: User data
84
 
 *   
 
84
 *
85
85
 *   Callback for gnet_inetaddr_new_async().
86
86
 *
87
87
 **/
88
 
typedef void (*GInetAddrNewAsyncFunc)(GInetAddr* inetaddr, 
89
 
                                      GInetAddrAsyncStatus status, 
 
88
typedef void (*GInetAddrNewAsyncFunc)(GInetAddr* inetaddr,
 
89
                                      GInetAddrAsyncStatus status,
90
90
                                      gpointer data);
91
91
 
92
92
 
93
93
 
94
94
/**
95
95
 *   GInetAddrGetNameAsyncID:
96
 
 * 
 
96
 *
97
97
 *   ID of an asynchronous InetAddr name lookup started with
98
98
 *   gnet_inetaddr_get_name_async().  The lookup can be canceled by
99
99
 *   calling gnet_inetaddr_get_name_async_cancel() with the ID.
109
109
 *   @status: Status of the lookup
110
110
 *   @name: Nice name of the address
111
111
 *   @data: User data
112
 
 *   
 
112
 *
113
113
 *   Callback for gnet_inetaddr_get_name_async().  Delete the name
114
114
 *   when you're done with it.
115
115
 *
116
116
 **/
117
 
typedef void (*GInetAddrGetNameAsyncFunc)(GInetAddr* inetaddr, 
118
 
                                          GInetAddrAsyncStatus status, 
 
117
typedef void (*GInetAddrGetNameAsyncFunc)(GInetAddr* inetaddr,
 
118
                                          GInetAddrAsyncStatus status,
119
119
                                          gchar* name,
120
120
                                          gpointer data);
121
121
 
126
126
 
127
127
GInetAddr* gnet_inetaddr_new (const gchar* name, gint port);
128
128
 
129
 
GInetAddrNewAsyncID 
130
 
gnet_inetaddr_new_async (const gchar* name, gint port, 
 
129
GInetAddrNewAsyncID
 
130
gnet_inetaddr_new_async (const gchar* name, gint port,
131
131
                         GInetAddrNewAsyncFunc func, gpointer data);
132
132
 
133
133
void       gnet_inetaddr_new_async_cancel (GInetAddrNewAsyncID id);
147
147
gchar* gnet_inetaddr_get_name (/* const */ GInetAddr* ia);
148
148
 
149
149
GInetAddrGetNameAsyncID
150
 
gnet_inetaddr_get_name_async (GInetAddr* ia, 
 
150
gnet_inetaddr_get_name_async (GInetAddr* ia,
151
151
                              GInetAddrGetNameAsyncFunc func,
152
152
                              gpointer data);
153
153