All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yevgeny Kliteynik <kliteyn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
Cc: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
	Hal Rosenstock
	<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Linux RDMA <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Yevgeny Kliteynik
	<kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Subject: Re: [PATCH] opensm: event plig-in API fixed to compile with g++
Date: Wed, 07 Jul 2010 01:19:45 +0300	[thread overview]
Message-ID: <4C33AC01.5090705@dev.mellanox.co.il> (raw)
In-Reply-To: <20100706140335.81e25f4c.weiny2-i2BcT+NCU+M@public.gmane.org>

On 07-Jul-10 12:03 AM, Ira Weiny wrote:
> On Mon, 5 Jul 2010 11:41:44 -0700
> Sasha Khapyorsky<sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>  wrote:
>
>> On 14:30 Mon 05 Jul     , Hal Rosenstock wrote:
>>> On Mon, Jul 5, 2010 at 2:11 PM, Sasha Khapyorsky<sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>  wrote:
>>>> On 11:10 Thu 24 Jun     , Yevgeny Kliteynik wrote:
>>>>> Event API should have been able to be used by libraries
>>>>> written both in C and C++.
>>>>
>>>> I don't know about such requirement.
>>>
>>> Are you saying it isn't a valid requirement to allow OpenSM plugins to
>>> be C++ based ? If so, why not ?
>>
>> I'm saying that there is no requirement for plugin API to support C++ -
>> obviously (following method names) plugin API was never developed for
>> using it in C++.
>
> Actually IMO this is not correct.  The use of "delete" was introduced
> by commit a5963f93fa3d4514cc526e4ad029b036724b8167.  I was at fault to
> not have objected back then.  The use of "extern C" in all of the header
> files below implies a desire to support C++.

Couldn't agree more.

-- Yevgeny

> 10:28:14>  pwd; grep "BEGIN_C_DECLS extern" *
> /home/weiny2/OpenIB/git-trees/management/opensm/include/opensm
> osm_attrib_req.h:#  define BEGIN_C_DECLS extern "C" {
> osm_base.h:#  define BEGIN_C_DECLS extern "C" {
> osm_console.h:#  define BEGIN_C_DECLS extern "C" {
> osm_console_io.h:#  define BEGIN_C_DECLS extern "C" {
> osm_db.h:#  define BEGIN_C_DECLS extern "C" {
> osm_db_pack.h:#  define BEGIN_C_DECLS extern "C" {
> osm_event_plugin.h:#  define BEGIN_C_DECLS extern "C" {
> osm_helper.h:#  define BEGIN_C_DECLS extern "C" {
> osm_inform.h:#  define BEGIN_C_DECLS extern "C" {
> osm_lid_mgr.h:#  define BEGIN_C_DECLS extern "C" {
> osm_log.h:#  define BEGIN_C_DECLS extern "C" {
> osm_mad_pool.h:#  define BEGIN_C_DECLS extern "C" {
> osm_madw.h:#  define BEGIN_C_DECLS extern "C" {
> osm_mcast_tbl.h:#  define BEGIN_C_DECLS extern "C" {
> osm_mcm_port.h:#  define BEGIN_C_DECLS extern "C" {
> osm_msgdef.h:#  define BEGIN_C_DECLS extern "C" {
> osm_mtree.h:#  define BEGIN_C_DECLS extern "C" {
> osm_multicast.h:#  define BEGIN_C_DECLS extern "C" {
> osm_node.h:#  define BEGIN_C_DECLS extern "C" {
> osm_opensm.h:#  define BEGIN_C_DECLS extern "C" {
> osm_partition.h:#  define BEGIN_C_DECLS extern "C" {
> osm_path.h:#  define BEGIN_C_DECLS extern "C" {
> osm_perfmgr_db.h:#  define BEGIN_C_DECLS extern "C" {
> osm_pkey.h:#  define BEGIN_C_DECLS extern "C" {
> osm_port.h:#  define BEGIN_C_DECLS extern "C" {
> osm_port_profile.h:#  define BEGIN_C_DECLS extern "C" {
> osm_prefix_route.h:#  define BEGIN_C_DECLS extern "C" {
> osm_remote_sm.h:#  define BEGIN_C_DECLS extern "C" {
> osm_router.h:#  define BEGIN_C_DECLS extern "C" {
> osm_sa.h:#  define BEGIN_C_DECLS extern "C" {
> osm_sa_mad_ctrl.h:#  define BEGIN_C_DECLS extern "C" {
> osm_service.h:#  define BEGIN_C_DECLS extern "C" {
> osm_sm.h:#  define BEGIN_C_DECLS extern "C" {
> osm_sm.h.orig:#  define BEGIN_C_DECLS extern "C" {
> osm_sm_mad_ctrl.h:#  define BEGIN_C_DECLS extern "C" {
> osm_stats.h:#  define BEGIN_C_DECLS extern "C" {
> osm_subnet.h:#  define BEGIN_C_DECLS extern "C" {
> osm_subnet.h.orig:#  define BEGIN_C_DECLS extern "C" {
> osm_switch.h:#  define BEGIN_C_DECLS extern "C" {
> osm_ucast_cache.h:#  define BEGIN_C_DECLS extern "C" {
> osm_ucast_mgr.h:#  define BEGIN_C_DECLS extern "C" {
> osm_vl15intf.h:#  define BEGIN_C_DECLS extern "C" {
> st.h:#  define BEGIN_C_DECLS extern "C" {
>
> Ira
>
>>
>> Why not is another question - for instance in order to not deal with
>> C/C++ compatibility issues (such as castings, function names limitation,
>> linking mess, etc.)
>>
>> Sasha
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://*vger.kernel.org/majordomo-info.html
>>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-07-06 22:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24  8:10 [PATCH] opensm: event plig-in API fixed to compile with g++ Yevgeny Kliteynik
     [not found] ` <4C2312F0.8020308-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2010-06-24 14:36   ` RDMA synchronous operations Andrea Gozzelino
     [not found]     ` <964270.1277390217198.SLOX.WebMail.wwwrun-XDIR3SKYeFbgKi2NxijLtw@public.gmane.org>
2010-06-24 19:21       ` Dotan Barak
2010-07-05 18:11   ` [PATCH] opensm: event plig-in API fixed to compile with g++ Sasha Khapyorsky
2010-07-05 18:30     ` Hal Rosenstock
     [not found]       ` <AANLkTilUABmkKA8W-vIVWyTuDR8Gte9jtxmDUL1SiAte-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-05 18:41         ` Sasha Khapyorsky
2010-07-05 18:49           ` Hal Rosenstock
     [not found]             ` <AANLkTina2lO8M65L465jXjO1ukaAudUO1ZNk8opfKtQc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-05 22:52               ` Sasha Khapyorsky
2010-07-05 23:29                 ` Hal Rosenstock
     [not found]                   ` <AANLkTinWEuCtSSfVc1Ti0SjgmUl3vnEY-DDd1nkWtlne-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-06 16:21                     ` Hefty, Sean
     [not found]                       ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A116CA8F-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-07-06 17:00                         ` Roland Dreier
     [not found]                           ` <adamxu4mtov.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-07 13:58                             ` Sasha Khapyorsky
2010-07-08 13:22                               ` Hal Rosenstock
2010-07-06 21:03           ` Ira Weiny
     [not found]             ` <20100706140335.81e25f4c.weiny2-i2BcT+NCU+M@public.gmane.org>
2010-07-06 22:19               ` Yevgeny Kliteynik [this message]
2010-07-07 11:22     ` Yevgeny Kliteynik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C33AC01.5090705@dev.mellanox.co.il \
    --to=kliteyn-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=weiny2-i2BcT+NCU+M@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.