UE: rename _nas_user_data to at_response and move it to nas_user_t
This commit is contained in:
@@ -88,6 +88,12 @@ void *nas_ue_task(void *args_p)
|
||||
itti_subscribe_event_fd (TASK_NAS_UE, user->fd);
|
||||
}
|
||||
|
||||
user->at_response = calloc(1, sizeof(at_response_t));
|
||||
if ( user->at_response == NULL ) {
|
||||
LOG_E(NAS, "[UE %d] Can't allocate memory for user_at_commands\n", 0);
|
||||
// FIXME stop here
|
||||
}
|
||||
|
||||
/* Initialize NAS user */
|
||||
nas_user_initialize (user, &user_api_emm_callback, &user_api_esm_callback, FIRMWARE_VERSION);
|
||||
}
|
||||
|
||||
+231
-237
File diff suppressed because it is too large
Load Diff
@@ -67,6 +67,6 @@ int nas_user_receive_and_process(nas_user_t *user, char *message);
|
||||
|
||||
int nas_user_process_data(nas_user_t *user, const void *data);
|
||||
|
||||
const void *nas_user_get_data(void);
|
||||
const void *nas_user_get_data(nas_user_t *nas_user);
|
||||
|
||||
#endif /* __NAS_USER_H__*/
|
||||
|
||||
@@ -55,6 +55,7 @@ Description NAS type definition to manage a user equipment
|
||||
#include "API/USIM/usim_api.h"
|
||||
#include "SecurityModeControl.h"
|
||||
#include "userDef.h"
|
||||
#include "at_response.h"
|
||||
|
||||
typedef struct {
|
||||
int fd;
|
||||
@@ -74,6 +75,7 @@ typedef struct {
|
||||
user_nvdata_t *nas_user_nvdata; //UE parameters stored in the UE's non-volatile memory device
|
||||
//
|
||||
nas_user_context_t *nas_user_context;
|
||||
at_response_t *at_response; // data structure returned to the user as the result of NAS procedure function call
|
||||
} nas_user_t;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user