Ignore:
Timestamp:
06/23/14 23:35:44 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
5876154
Parents:
ed81f74
Message:

Remove inlines for BSD support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/sliding_window.c

    read9478 r5ba34eb  
    1414 *                              NOTE: this mainly applies to the blocking functions
    1515 */
    16 inline void libtrace_slidingwindow_init(libtrace_slidingwindow_t *sw, size_t size, uint64_t start_number) {
     16void libtrace_slidingwindow_init(libtrace_slidingwindow_t *sw, size_t size, uint64_t start_number) {
    1717        sw->size = size; // All of this size can be used
    1818        sw->start = 0;
     
    2727 * @param rb The ringbuffer to destroy
    2828 */
    29 inline void libtrace_slidingwindow_destroy(libtrace_slidingwindow_t *sw) {
     29void libtrace_slidingwindow_destroy(libtrace_slidingwindow_t *sw) {
    3030        sw->size = 0;
    3131        sw->start = 0;
     
    4646 * @return 1 if a object was written otherwise 0.
    4747 */
    48 inline int libtrace_slidingwindow_try_write(libtrace_slidingwindow_t *sw, uint64_t number, void* value) {
     48int libtrace_slidingwindow_try_write(libtrace_slidingwindow_t *sw, uint64_t number, void* value) {
    4949        uint64_t adjusted_number = number - sw->start_number;
    5050        if (adjusted_number < sw->size) {
     
    6262}
    6363
    64 inline uint64_t libtrace_slidingwindow_read_ready(libtrace_slidingwindow_t *sw) {
     64uint64_t libtrace_slidingwindow_read_ready(libtrace_slidingwindow_t *sw) {
    6565        return sw->elements[sw->start] != NULL;
    6666}
     
    7474 * @return 1 if a object was received otherwise 0, in this case out remains unchanged
    7575 */
    76 inline int libtrace_slidingwindow_try_read(libtrace_slidingwindow_t *sw, void ** value, uint64_t *number) {
     76int libtrace_slidingwindow_try_read(libtrace_slidingwindow_t *sw, void ** value, uint64_t *number) {
    7777        if (sw->elements[sw->start]) {
    7878                *value = sw->elements[sw->start];
     
    8888}
    8989
    90 inline void libtrace_zero_slidingwindow(libtrace_slidingwindow_t * sw)
     90void libtrace_zero_slidingwindow(libtrace_slidingwindow_t * sw)
    9191{
    9292        sw->start = 0;
Note: See TracChangeset for help on using the changeset viewer.