Skip to content

Commit

Permalink
[ovsp4rt] Rename API files
Browse files Browse the repository at this point in the history
- Renamed ovsp4rt_c_api.cc to ovsp4rt_standard_api.cc
  and ovsp4rt_cc_api.h to ovsp4rt_internal_api.h, to
  make their purpose clearer.

Signed-off-by: Derek Foster <justffoulkes@gmail.com>
  • Loading branch information
ffoulkes committed Dec 24, 2024
1 parent 5c66dab commit e51e8ff
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ovs-p4rt/sidecar/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ add_library(ovs_sidecar_o OBJECT
if(BUILD_CLIENT)
if(BUILD_JOURNAL)
target_sources(ovs_sidecar_o PRIVATE
ovsp4rt_cc_api.h
ovsp4rt_internal_api.h
ovsp4rt_journal_api.cc
)
else()
target_sources(ovs_sidecar_o PRIVATE
ovsp4rt_c_api.cc
ovsp4rt_cc_api.h
ovsp4rt_internal_api.h
ovsp4rt_standard_api.cc
)
endif()
endif()
Expand Down
2 changes: 1 addition & 1 deletion ovs-p4rt/sidecar/ovsp4rt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "logging/ovsp4rt_logging.h"
#include "logging/ovsp4rt_logutils.h"
#include "ovsp4rt/ovs-p4rt.h"
#include "ovsp4rt_cc_api.h"
#include "ovsp4rt_internal_api.h"
#include "ovsp4rt_private.h"

#if defined(DPDK_TARGET)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

// Defines the interface to the C++ functions that implement
// the public API.
// the ovsp4rt C API.

#ifndef OVSP4RT_CC_API_H_
#define OVSP4RT_CC_API_H_
Expand Down
4 changes: 2 additions & 2 deletions ovs-p4rt/sidecar/ovsp4rt_journal_api.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2022-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

// Implements the C API using the JournalClient class.
// Journaling implementation of the ovsp4rt C API.

#include "client/ovsp4rt_journal_client.h"
#include "ovsp4rt/ovs-p4rt.h"
#include "ovsp4rt_cc_api.h"
#include "ovsp4rt_internal_api.h"

//----------------------------------------------------------------------
// ovsp4rt_config_fdb_entry (DPDK, ES2K)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2022-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

// Implementation of the C API using the Client class.
// Standard implementation of the ovsp4rt C API.

#include "client/ovsp4rt_client.h"
#include "ovsp4rt/ovs-p4rt.h"
#include "ovsp4rt_cc_api.h"
#include "ovsp4rt_internal_api.h"

//----------------------------------------------------------------------
// ovsp4rt_config_fdb_entry (DPDK, ES2K)
Expand Down

0 comments on commit e51e8ff

Please sign in to comment.