windows.c (8eab21516a6c4395c6f4f4d630e00c04f6ece6cf) windows.c (5335f0930db13a19e1c52b4f746e43db8f79fd76)
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (C) 2018 IBM Corp.
3
4#define _GNU_SOURCE
5#include <assert.h>
6#include <errno.h>
7#include <fcntl.h>
8#include <getopt.h>

--- 380 unchanged lines hidden (view full) ---

389 * to the host (set_bmc_event == true).
390 */
391void windows_close_current(struct mbox_context *context, bool set_bmc_event,
392 uint8_t flags)
393{
394 MSG_DBG("Close current window, flags: 0x%.2x\n", flags);
395
396 if (set_bmc_event) {
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (C) 2018 IBM Corp.
3
4#define _GNU_SOURCE
5#include <assert.h>
6#include <errno.h>
7#include <fcntl.h>
8#include <getopt.h>

--- 380 unchanged lines hidden (view full) ---

389 * to the host (set_bmc_event == true).
390 */
391void windows_close_current(struct mbox_context *context, bool set_bmc_event,
392 uint8_t flags)
393{
394 MSG_DBG("Close current window, flags: 0x%.2x\n", flags);
395
396 if (set_bmc_event) {
397 set_bmc_events(context, BMC_EVENT_WINDOW_RESET, SET_BMC_EVENT);
397 protocol_events_set(context, BMC_EVENT_WINDOW_RESET, EVENT_TRIGGER);
398 }
399
400 if (flags & FLAGS_SHORT_LIFETIME) {
401 context->current->age = 0;
402 }
403
404 context->current = NULL;
405 context->current_is_write = false;

--- 268 unchanged lines hidden ---
398 }
399
400 if (flags & FLAGS_SHORT_LIFETIME) {
401 context->current->age = 0;
402 }
403
404 context->current = NULL;
405 context->current_is_write = false;

--- 268 unchanged lines hidden ---