libpurple/win32/libc_internal.h

Fri, 11 Mar 2022 03:29:48 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 11 Mar 2022 03:29:48 -0600
changeset 41281
aa8fc0497d6d
parent 40809
691bd780ab06
child 41829
13997c67710d
permissions
-rw-r--r--

Add an echo user to the demo protocol

Testing Done:
Opened a conversation and typed a few message.

Reviewed at https://reviews.imfreedom.org/r/1328/

3776
4372bb2cc50f [gaim-migrate @ 3916]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
1 /*
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
2 * purple
5913
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
3 *
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
4 * File: libc_internal.h
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
5 *
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
6 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
7 *
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
8 * This program is free software; you can redistribute it and/or modify
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
9 * it under the terms of the GNU General Public License as published by
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
11 * (at your option) any later version.
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
12 *
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
13 * This program is distributed in the hope that it will be useful,
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
16 * GNU General Public License for more details.
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
17 *
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
18 * You should have received a copy of the GNU General Public License
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
19 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 15936
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
5913
4d016c00bb36 [gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents: 3776
diff changeset
21 *
3776
4372bb2cc50f [gaim-migrate @ 3916]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
22 */
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
23 #ifndef PURPLE_WIN32_LIBC_INTERNAL
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
24 #define PURPLE_WIN32_LIBC_INTERNAL
15936
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
25 #include <glib.h>
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
26
39383
0f9d49617abc Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents: 39020
diff changeset
27 G_BEGIN_DECLS
22686
d41016d7812d Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <datallah@pidgin.im>
parents: 20239
diff changeset
28
15936
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
29 /* sys/socket.h */
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
30 int wpurple_getsockname (int socket, struct sockaddr *addr, socklen_t *lenptr);
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
31
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
32 /* netdb.h */
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
33 struct hostent* wpurple_gethostbyname(const char *name);
1a5a326484f3 move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <datallah@pidgin.im>
parents: 15884
diff changeset
34
3776
4372bb2cc50f [gaim-migrate @ 3916]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
35 /* fcntl.h */
20239
ae122f419324 applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents: 19859
diff changeset
36 int wpurple_fcntl(int socket, int command, ...);
ae122f419324 applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents: 19859
diff changeset
37 #define F_GETFL 3
ae122f419324 applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents: 19859
diff changeset
38 #define F_SETFL 4
ae122f419324 applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents: 19859
diff changeset
39 #define O_NONBLOCK 04000
3776
4372bb2cc50f [gaim-migrate @ 3916]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
40
39383
0f9d49617abc Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents: 39020
diff changeset
41 G_END_DECLS
22686
d41016d7812d Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <datallah@pidgin.im>
parents: 20239
diff changeset
42
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
43 #endif /* PURPLE_WIN32_LIBC_INTERNAL */

mercurial