pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Remove pidgin_dialogs_plugins_info as it's no longer used
2021-09-11, Gary Kramlich
65cf7357277d
Remove pidgin_dialogs_plugins_info as it's no longer used
Testing Done:
Compiled and ran.
Reviewed at https://reviews.imfreedom.org/r/917/
/* This file is part of the Project Athena Zephyr Notification System.
* It contains source for ZPeekPacket function.
*
* Created by: Robert French
*
* Copyright (c) 1987 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include
"internal.h"
Code_t
ZPeekPacket
(
char
**
buffer
,
int
*
ret_len
,
GSocketAddress
**
from
)
{
Code_t
retval
;
Z_InputQ
*
nextq
;
if
((
retval
=
Z_WaitForComplete
())
!=
ZERR_NONE
)
return
(
retval
);
nextq
=
Z_GetFirstComplete
();
*
ret_len
=
nextq
->
packet_len
;
if
(
!
(
*
buffer
=
(
char
*
)
malloc
((
unsigned
)
*
ret_len
)))
return
(
ENOMEM
);
(
void
)
memcpy
(
*
buffer
,
nextq
->
packet
,
*
ret_len
);
if
(
from
)
{
*
from
=
g_object_ref
(
nextq
->
from
);
}
return
(
ZERR_NONE
);
}