diff options
author | Sebastian Stumpf <sebastian.stumpf87@googlemail.com> | 2017-02-06 14:14:31 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-07-12 23:26:26 +0200 |
commit | 2e265c897a7a1d099c08807f0587dfbfc83f260d (patch) | |
tree | ee09836ac1fd18fb1c35279195a0fe1f570e6f4b /src/host/virt_phy/src/virt_l1_model.c | |
parent | fa2ce6396fae18ded5bb9620b4ab761ab417c4ba (diff) |
VIRT-PHY: Cleanup dirs, makefile, dependencies and formatting code.
Change-Id: Ibd68a03bcc439c262ba513782936c6b62937eaaa
Diffstat (limited to 'src/host/virt_phy/src/virt_l1_model.c')
-rw-r--r-- | src/host/virt_phy/src/virt_l1_model.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/host/virt_phy/src/virt_l1_model.c b/src/host/virt_phy/src/virt_l1_model.c index f2e16905..1b1d0dfd 100644 --- a/src/host/virt_phy/src/virt_l1_model.c +++ b/src/host/virt_phy/src/virt_l1_model.c @@ -1,14 +1,16 @@ -#include "virt_l1_model.h" - -struct l1_model_ms* l1_model_ms_init(void *ctx) { +#include <virtphy/virt_l1_model.h> +#include <talloc.h> +struct l1_model_ms* l1_model_ms_init(void *ctx) +{ struct l1_model_ms *model = talloc_zero(ctx, struct l1_model_ms); model->state = talloc_zero(ctx, struct l1_state_ms); - return model; + } -void l1_model_ms_destroy(struct l1_model_ms *model) { +void l1_model_ms_destroy(struct l1_model_ms *model) +{ virt_um_destroy(model->vui); l1ctl_sock_destroy(model->lsi); talloc_free(model->state); |