On 3/3/11, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > Hi, > > On Thu, Mar 3, 2011 at 6:58 AM, Slawomir Bochenski <lkslawek@xxxxxxxxx> > wrote: >> Hi, >> >> On Wed, Mar 2, 2011 at 10:12 PM, Luiz Augusto von Dentz >> <luiz.dentz@xxxxxxxxx> wrote: >>> I guess naming the file and plugin 'map' would make more sense here, >>> we don't want to confuse people what this file is about. >> >> There are two things which makes MAP - MAS and MNS. It is not like any >> other plugin we have here. The communication goes both ways, i.e. in >> full implementation there are OBEX server and OBEX client present on >> _both_ sides. As generally architecture of obexd and obex-client >> currently allows OBEX servers to be implemented only in obexd and OBEX >> clients in obex-client, it is easy to imagine that in order to add >> full MAP client role, there would be need for another plugin in obexd >> for MNS. > > But that doesn't solve any problem since the profile as a whole need > both client and server side it make no sense to have one without the > other, we can still have different drivers for each sides but the > plugin should be the same, it is a single profile not two. > Let me rephrase this: +-------+-------------+---------------+ |MAP | obex-client | client/mns.c | |Server | | / \ | |role | | | | | +-------------| D-Bus | | | obexd | | | | | | \ / | | | | plugins/mas.c | +-------+-------------+---------------+ +-------+-------------+---------------+ |MAP | obex-client | client/mas.c | |Client | | / \ | |role | | | | | +-------------| D-Bus | | | obexd | | | | | | \ / | | | | plugins/mns.c | +-------+-------------+---------------+ >> So there can be mns.c and mas.c, both in obexd, both completely >> independent - each one of them having nothing in common, i.e. user can >> run mns when he wants to be MAP client, mas when he wants to be MAP >> server or mas and mns when he likes to be both. >> >> Therefore naming it "map" would confuse more those who know what is >> MAP and what they really want. > > Again if they cannot be qualified separately then it make no sense to > separate them in two plugin, the logical separation can happen on > driver level. So yes, they most definitely can be qualified separately. >>> Also Ive been thinking on removing this internal APIs for backend, >>> each would implemented as plugin/mimetype driver directly and we can >>> create basic drivers for pbap and map and export its callbacks on >>> pbap.h and map.h respectively as we do for pcsuite which uses ftp >>> driver callbacks. >> >> I really hope that you will keep this in "thinking stage" for now. I >> see problems coming. I'd rather prefer to use what we have now and >> what works. There might be some parts that won't fit well in this new >> philosophy. It would be better to postpone considering such changes in >> MAP to the point when it will be in repository in a more complete >> form. > > It should not cause any problem, because core only knows about the > mimetype drivers, the backend interface is a plugin specific API. In > theory one could re implement pbap plugin which would have another > backend interface. If we have the backend implementing the mimetype > driver the only thing that changes is that no API is needed between > e.g. pbap plugin and the backend. > > Note that one of the worst problems with current pbap implementation > is the backend API, because it has to handle things like asynchronous > requests and cancel requests which comes from mimetype driver it had > to change several times during the development, I don't want this to > happen with map. This already happened with MAP and it works. It is done differently than in PBAP, for example handling of application parameters and cases when body is sent and when it is not is done more cleanly. And I've already seen the problems closer to the end of the MAP implementation road. What you're proposing will make this road more bumpy. -- Slawomir Bochenski -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html