Hi Lucas,

> >> -                     const char *old, const char *new,
> >> +                     const char *p_old, const char *p_new,
> >>                       ofono_sim_lock_unlock_cb_t cb, void *data);
> >>       void (*lock)(struct ofono_sim *sim, enum ofono_sim_password_type 
> >> type,
> >>                       int enable, const char *passwd,
> >
> > why is this exactly a problem?
> 
> I did it only because the file contains this:
> 
> #ifdef __cplusplus
> extern "C" {
> #endif
> 
> 
> So I thought someone might want to write a plugin in C++ or something
> that includes sim.h

and at that point you told the compiler that it is C code and not C++
and it should be just fine.

> > And if you really wanna do that, then please not something cryptic like
> 
> No, I don't want. If nobody will use C++, I'm fine the way it is. Then
> we might want to remove that ifdef, because it will not compile
> anyway.

I think it will compile just fine. Try to test it ;)

Regards

Marcel


_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to