Commit 7377c385 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[1924] Use the constants in default parameters too

parent 8adef649
......@@ -33,8 +33,6 @@
#include <cc/data.h>
#include <cc/session.h>
#include <util/common_defs.h>
#include <cstdio>
#include <vector>
#include <iostream>
......
......@@ -15,14 +15,16 @@
#ifndef ISC_SESSION_H
#define ISC_SESSION_H 1
#include <string>
#include <cc/data.h>
#include <cc/session_config.h>
#include <boost/function.hpp>
#include <util/common_defs.h>
#include <exceptions/exceptions.h>
#include <cc/data.h>
#include <cc/session_config.h>
#include <string>
#include <boost/function.hpp>
namespace asio {
class io_service;
......@@ -81,8 +83,10 @@ namespace isc {
virtual void disconnect() = 0;
virtual int group_sendmsg(isc::data::ConstElementPtr msg,
std::string group,
std::string instance = "*",
std::string to = "*",
std::string instance =
isc::util::CC_INSTANCE_WILDCARD,
std::string to =
isc::util::CC_TO_WILDCARD,
bool want_answer = false) = 0;
virtual bool group_recvmsg(isc::data::ConstElementPtr& envelope,
isc::data::ConstElementPtr& msg,
......
......@@ -257,8 +257,8 @@ class Session:
"instance": instance,
})
def group_sendmsg(self, msg, group, instance = "*", to = "*",
want_answer=False):
def group_sendmsg(self, msg, group, instance=CC_INSTANCE_WILDCARD,
to=CC_TO_WILDCARD, want_answer=False):
seq = self._next_sequence()
self.sendmsg({
CC_HEADER_TYPE: CC_COMMAND_SEND,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment