Skip to content

Commit

Permalink
Set deprecation warning for python method initialize(args, unit_name).
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemn committed Dec 6, 2024
1 parent d6664ba commit 9a4dde6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecal/core/include/ecal/ecal_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ namespace eCAL
**/
struct SVersion
{
int major; //!< major version number
int minor; //!< minor version number
int patch; //!< patch version number
const int major; //!< major version number
const int minor; //!< minor version number
const int patch; //!< patch version number
};

/**
Expand Down
11 changes: 11 additions & 0 deletions lang/python/core/ecal/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@

import ecal._ecal_core_py as _ecal

def initialize(args, unit_name):
""" initialize eCAL API
:param args: command line argument list (sys.argv)
:param unit_name: instance unit name
:type unit_name: string
"""
print("[WARNING] 'initialize(args, unit_name)' is deprecated. Please use 'initialize(argv, unit_name)' instead.")
return initialize(unit_name)

def initialize(unit_name):
""" initialize eCAL API
Expand Down

0 comments on commit 9a4dde6

Please sign in to comment.