Holds state of a search. More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | SearchState |
Holds state of a search. More... | |
Macros | |
#define | SEARCH_NO_FLAGS 0 |
No flags are set. | |
#define | SEARCH_PROMPT (1 << 0) |
Ask for search input. | |
#define | SEARCH_OPPOSITE (1 << 1) |
Search in the opposite direction. | |
Typedefs | |
typedef uint8_t | SearchFlags |
Flags for a specific search, e.g. SEARCH_PROMPT. | |
Functions | |
struct SearchState * | search_state_new (void) |
Create a new SearchState. | |
void | search_state_free (struct SearchState **search) |
Free a SearchState. | |
Holds state of a search.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file search_state.h.
#define SEARCH_NO_FLAGS 0 |
No flags are set.
Definition at line 44 of file search_state.h.
#define SEARCH_PROMPT (1 << 0) |
Ask for search input.
Definition at line 45 of file search_state.h.
#define SEARCH_OPPOSITE (1 << 1) |
Search in the opposite direction.
Definition at line 46 of file search_state.h.
typedef uint8_t SearchFlags |
Flags for a specific search, e.g. SEARCH_PROMPT.
Definition at line 43 of file search_state.h.
struct SearchState * search_state_new | ( | void | ) |
Create a new SearchState.
ptr | New SearchState |
Definition at line 39 of file search_state.c.
void search_state_free | ( | struct SearchState ** | ptr | ) |
Free a SearchState.
ptr | SearchState to free |
Definition at line 51 of file search_state.c.