/*
* This file is part of the sigrok project.
*
- * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* Halt the current session.
*
- * This requests the current session be stopped as soon as possible, for example
- * on receiving an SR_DF_END packet.
+ * This requests the current session be stopped as soon as possible, for
+ * example on receiving an SR_DF_END packet.
*
* @return SR_OK upon success, SR_ERR_BUG if no session exists.
*/
* Debug helper.
*
* @param packet The packet to show debugging information for.
- *
*/
static void datafeed_dump(struct sr_datafeed_packet *packet)
{
sr_dbg("bus: received unknown packet type %d", packet->type);
break;
}
-
}
/**
*
* @param device TODO.
* @param packet TODO.
+ *
* @return SR_OK upon success, SR_ERR_ARG upon invalid arguments.
*/
SR_PRIV int sr_session_bus(struct sr_device *device,
- struct sr_datafeed_packet *packet)
+ struct sr_datafeed_packet *packet)
{
GSList *l;
sr_datafeed_callback cb;
* @param timeout TODO.
* @param callback TODO.
* @param user_data TODO.
+ *
* @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, or
* SR_ERR_MALLOC upon memory allocation errors.
*/
* TODO: More error checks.
*
* @param fd TODO.
+ *
* @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, or
* SR_ERR_MALLOC upon memory allocation errors, SR_ERR_BUG upon
* internal errors.