~awe/wpasupplicant/add-fake-aps

« back to all changes in this revision

Viewing changes to src/utils/bitfield.h

  • Committer: Tony Espy
  • Date: 2015-09-03 17:55:32 UTC
  • Revision ID: espy@canonical.com-20150903175532-7uv6rqya9iqco340
Initial personal branch for feature devel (LP: #1480877).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Bitfield
 
3
 * Copyright (c) 2013, Jouni Malinen <j@w1.fi>
 
4
 *
 
5
 * This software may be distributed under the terms of the BSD license.
 
6
 * See README for more details.
 
7
 */
 
8
 
 
9
#ifndef BITFIELD_H
 
10
#define BITFIELD_H
 
11
 
 
12
struct bitfield;
 
13
 
 
14
struct bitfield * bitfield_alloc(size_t max_bits);
 
15
void bitfield_free(struct bitfield *bf);
 
16
void bitfield_set(struct bitfield *bf, size_t bit);
 
17
void bitfield_clear(struct bitfield *bf, size_t bit);
 
18
int bitfield_is_set(struct bitfield *bf, size_t bit);
 
19
int bitfield_get_first_zero(struct bitfield *bf);
 
20
 
 
21
#endif /* BITFIELD_H */