Changeset cbd77bd


Ignore:
Timestamp:
01/15/19 10:07:36 (22 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
629b19b
Parents:
7aa03d9
Message:

Fallback to packet callback if meta callback is not defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r62b2d97 rcbd77bd  
    500500                /* If packet is meta call the meta callback */
    501501                if (IS_LIBTRACE_META_PACKET((*packet))) {
     502                        /* Pass to meta callback if defined else pass to packet callback */
    502503                        if (trace->perpkt_cbs->message_meta_packet) {
    503                                 *packet = (*trace->perpkt_cbs->message_meta_packet)(trace, t, trace->global_blob,
    504                                         t->user_data, *packet);
     504                                *packet = (*trace->perpkt_cbs->message_meta_packet)(trace, t,
     505                                        trace->global_blob, t->user_data, *packet);
     506                        } else if (trace->perpkt_cbs->message_packet) {
     507                                *packet = (*trace->perpkt_cbs->message_packet)(trace, t,
     508                                        trace->global_blob, t->user_data, *packet);
    505509                        }
    506510                } else {
    507511                        if (trace->perpkt_cbs->message_packet) {
    508                                 *packet = (*trace->perpkt_cbs->message_packet)(trace, t, trace->global_blob, t->user_data,
    509                                         *packet);
     512                                *packet = (*trace->perpkt_cbs->message_packet)(trace, t,
     513                                        trace->global_blob, t->user_data, *packet);
    510514                        }
    511515                }
Note: See TracChangeset for help on using the changeset viewer.