Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::EmbedderServiceHandler Class Reference

Public Member Functions

 EmbedderServiceHandler (const char *name)
 
 ~EmbedderServiceHandler ()
 
const char * name () const
 
Dart_ServiceRequestCallback callback () const
 
void set_callback (Dart_ServiceRequestCallback callback)
 
void * user_data () const
 
void set_user_data (void *user_data)
 
EmbedderServiceHandlernext () const
 
void set_next (EmbedderServiceHandler *next)
 

Detailed Description

Definition at line 1322 of file service.cc.

Constructor & Destructor Documentation

◆ EmbedderServiceHandler()

dart::EmbedderServiceHandler::EmbedderServiceHandler ( const char *  name)
inlineexplicit

Definition at line 1324 of file service.cc.

1325 : name_(nullptr),
1326 callback_(nullptr),
1327 user_data_(nullptr),
1328 next_(nullptr) {
1329 ASSERT(name != nullptr);
1330 name_ = Utils::StrDup(name);
1331 }
const char * name() const
Definition: service.cc:1335
static char * StrDup(const char *s)
#define ASSERT(E)

◆ ~EmbedderServiceHandler()

dart::EmbedderServiceHandler::~EmbedderServiceHandler ( )
inline

Definition at line 1333 of file service.cc.

1333{ free(name_); }

Member Function Documentation

◆ callback()

Dart_ServiceRequestCallback dart::EmbedderServiceHandler::callback ( ) const
inline

Definition at line 1337 of file service.cc.

1337{ return callback_; }

◆ name()

const char * dart::EmbedderServiceHandler::name ( ) const
inline

Definition at line 1335 of file service.cc.

1335{ return name_; }

◆ next()

EmbedderServiceHandler * dart::EmbedderServiceHandler::next ( ) const
inline

Definition at line 1345 of file service.cc.

1345{ return next_; }

◆ set_callback()

void dart::EmbedderServiceHandler::set_callback ( Dart_ServiceRequestCallback  callback)
inline

Definition at line 1338 of file service.cc.

1338 {
1339 callback_ = callback;
1340 }
Dart_ServiceRequestCallback callback() const
Definition: service.cc:1337

◆ set_next()

void dart::EmbedderServiceHandler::set_next ( EmbedderServiceHandler next)
inline

Definition at line 1346 of file service.cc.

1346{ next_ = next; }
EmbedderServiceHandler * next() const
Definition: service.cc:1345

◆ set_user_data()

void dart::EmbedderServiceHandler::set_user_data ( void *  user_data)
inline

Definition at line 1343 of file service.cc.

1343{ user_data_ = user_data; }
void * user_data() const
Definition: service.cc:1342

◆ user_data()

void * dart::EmbedderServiceHandler::user_data ( ) const
inline

Definition at line 1342 of file service.cc.

1342{ return user_data_; }

The documentation for this class was generated from the following file: