Changeset b5af22c for lib/format_erf.c


Ignore:
Timestamp:
04/14/10 15:26:28 (11 years ago)
Author:
Perry Lorier <perry@…>
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:
a17c329
Parents:
81c2da8
Message:

Split compression type out from fileflags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r5511c14 rb5af22c  
    111111                /* Compression level for the output file */
    112112                int level;
     113                /* Compression type */
     114                int compress_type;
    113115                /* File flags used to open the file, e.g. O_CREATE */
    114116                int fileflag;
     
    349351
    350352        OUT_OPTIONS.level = 0;
     353        OUT_OPTIONS.compress_type = TRACE_OPTION_COMPRESSTYPE_NONE;
    351354        OUT_OPTIONS.fileflag = O_CREAT | O_WRONLY;
    352355        OUTPUT->file = 0;
     
    361364                case TRACE_OPTION_OUTPUT_COMPRESS:
    362365                        OUT_OPTIONS.level = *(int*)value;
     366                        return 0;
     367                case TRACE_OPTION_OUTPUT_COMPRESSTYPE:
     368                        OUT_OPTIONS.compress_type = *(int*)value;
    363369                        return 0;
    364370                case TRACE_OPTION_OUTPUT_FILEFLAGS:
     
    532538{
    533539        OUTPUT->file = trace_open_file_out(libtrace,
     540                        OUT_OPTIONS.compress_type,
    534541                        OUT_OPTIONS.level,
    535542                        OUT_OPTIONS.fileflag);
     543
    536544        if (!OUTPUT->file) {
    537545                return -1;
Note: See TracChangeset for help on using the changeset viewer.