proto_agent.h 1.96 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */
21 22

/*! \file proto_agent.h
frtabu's avatar
frtabu committed
23
 * \brief top level protocol agent
24 25 26 27 28 29 30
 * \author Navid Nikaein and Xenofon Foukas
 * \date 2016
 * \version 0.1
 */

#ifndef PROTO_AGENT_H_
#define PROTO_AGENT_H_
31
#include "ENB_APP/enb_config.h" // for enb properties
32
#include "proto_agent_common.h"
33

34

frtabu's avatar
frtabu committed
35
void *proto_agent_receive(void *args);
36

Robert Schmidt's avatar
Robert Schmidt committed
37
int proto_agent_start(mod_id_t mod_id, const cudu_params_t *p);
38
void proto_agent_stop(mod_id_t mod_id);
39

frtabu's avatar
frtabu committed
40
rlc_op_status_t proto_agent_send_rlc_data_req( const protocol_ctxt_t *const ctxt_pP,
Robert Schmidt's avatar
Robert Schmidt committed
41 42 43
    const srb_flag_t srb_flagP, const MBMS_flag_t MBMS_flagP,
    const rb_id_t rb_idP, const mui_t muiP, confirm_t confirmP,
    sdu_size_t sdu_sizeP, mem_block_t *sdu_pP);
44

45
boolean_t proto_agent_send_pdcp_data_ind(const protocol_ctxt_t *const ctxt_pP,
frtabu's avatar
frtabu committed
46 47
                                    const srb_flag_t srb_flagP, const MBMS_flag_t MBMS_flagP,
                                    const rb_id_t rb_idP, sdu_size_t sdu_sizeP, mem_block_t *sdu_pP);
48

49
#endif