{
GPollFD p;
- (void) session;
-
p.fd = fd;
p.events = events;
GPollFD *pollfd, int timeout, sr_receive_data_callback cb,
void *cb_data)
{
- (void) session;
-
return _sr_session_source_add(session, pollfd, timeout, cb,
cb_data, (gintptr)pollfd);
}
{
GPollFD p;
- (void) session;
-
#ifdef _WIN32
g_io_channel_win32_make_pollfd(channel, events, &p);
#else
*/
SR_API int sr_session_source_remove(struct sr_session *session, int fd)
{
- (void) session;
-
return _sr_session_source_remove(session, (gintptr)fd);
}
SR_API int sr_session_source_remove_pollfd(struct sr_session *session,
GPollFD *pollfd)
{
- (void) session;
-
return _sr_session_source_remove(session, (gintptr)pollfd);
}
SR_API int sr_session_source_remove_channel(struct sr_session *session,
GIOChannel *channel)
{
- (void) session;
-
return _sr_session_source_remove(session, (gintptr)channel);
}
int tmpfile, cnt, ret, i;
char version[1], metafile[32], *s;
- (void) session;
+ (void)session;
if (!filename) {
sr_err("%s: filename was NULL", __func__);
const char *entry_name;
char *metafile, tmpname[32], chunkname[16];
- (void) session;
+ (void)session;
if ((ret = sr_sessionfile_check(filename)) != SR_OK)
return ret;