1// Copyright 2016 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7// setup networking
8int netifc_open(void);
9
10// process inbound packet(s)
11void netifc_poll(void);
12
13// return nonzero if interface exists
14int netifc_active(void);
15
16// shut down networking
17void netifc_close(void);
18
19// set a timer to expire after ms milliseconds
20void netifc_set_timer(uint32_t ms);
21
22// returns true once the timer has expired
23int netifc_timer_expired(void);
24