Changeset 7c9b99b for lib/trace.c


Ignore:
Timestamp:
12/14/05 16:32:20 (16 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
b8bb4c5
Parents:
93d0858
Message:

Fixed function name inconsistency - functions should have the format
trace_*verb*_*subject* e.g. trace_create_output or trace_destroy_packet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r3b8a5ef r7c9b99b  
    375375 */
    376376       
    377 struct libtrace_out_t *trace_output_create(const char *uri) {
     377struct libtrace_out_t *trace_create_output(const char *uri) {
    378378        struct libtrace_out_t *libtrace = malloc(sizeof(struct libtrace_out_t));
    379379       
     
    438438 * @author Shane Alcock
    439439 */
    440 int trace_output_config(struct libtrace_out_t *libtrace, char *options) {
     440int trace_config_output(struct libtrace_out_t *libtrace, char *options) {
    441441        char *opt_string = 0;
    442442        char *opt_argv[MAXOPTS];
     
    480480 * @author Shane Alcock
    481481 * */
    482 void trace_output_destroy(struct libtrace_out_t *libtrace) {
     482void trace_destroy_output(struct libtrace_out_t *libtrace) {
    483483        assert(libtrace);
    484484        libtrace->format->fin_output(libtrace);
     
    492492 * @ return a pointer to an initialised libtrace_packet_t structure
    493493 */
    494 struct libtrace_packet_t *trace_packet_create() {
     494struct libtrace_packet_t *trace_create_packet() {
    495495        struct libtrace_packet_t *packet = calloc(1,sizeof(struct libtrace_packet_t));
    496496        packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE);
     
    503503 * sideeffect: sets packet to NULL
    504504 */
    505 void trace_packet_destroy(struct libtrace_packet_t **packet) {
     505void trace_destroy_packet(struct libtrace_packet_t **packet) {
    506506        if ((*packet)->buf_control) {
    507507                free((*packet)->buffer);
Note: See TracChangeset for help on using the changeset viewer.