author seabld
Tue, 10 Dec 2013 19:46:44 -0800
changeset 162115 18f4223296d02d37b6a08e6455fc00be83d05e74
parent 108991 a16372ce30b5f6b747246b01fcd215a4bf3b6342
permissions -rw-r--r--
Added tag SEAMONKEY_2_23_RELEASE for changeset c6bc408104a2. CLOSED TREE a=release

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsNetSegmentUtils_h__
#define nsNetSegmentUtils_h__

#include "nsIOService.h"

 * applies defaults to segment params in a consistent way.
static inline void
net_ResolveSegmentParams(uint32_t &segsize, uint32_t &segcount)
    if (!segsize)
        segsize = nsIOService::gDefaultSegmentSize;

    if (!segcount)
        segcount = nsIOService::gDefaultSegmentCount;

#endif // !nsNetSegmentUtils_h__