Changeset 6d212f4 for protocols/purple


Ignore:
Timestamp:
2016-12-26T00:20:09Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
59ccef5
Parents:
7486853
git-author:
dequis <dx@…> (25-12-16 23:41:13)
git-committer:
dequis <dx@…> (26-12-16 00:20:09)
Message:

purple: include purple plugins in the 'plugins' command list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r7486853 r6d212f4  
    16401640        }
    16411641}
     1642
     1643/* borrowing this semi-private function
     1644 * TODO: figure out a better interface later (famous last words) */
     1645gboolean plugin_info_add(struct plugin_info *info);
    16421646
    16431647void purple_initmodule()
     
    17411745                PurplePluginProtocolInfo *pi = prot->info->extra_info;
    17421746                struct prpl *ret;
     1747                struct plugin_info *info;
    17431748
    17441749                /* If we already have this one (as a native module), don't
     
    17751780                        register_protocol(ret);
    17761781                }
     1782
     1783                info = g_new0(struct plugin_info, 1);
     1784                info->abiver = BITLBEE_ABI_VERSION_CODE;
     1785                info->name = ret->name;
     1786                info->version = prot->info->version;
     1787                info->description = prot->info->description;
     1788                info->author = prot->info->author;
     1789                info->url = prot->info->homepage;
     1790
     1791                plugin_info_add(info);
    17771792        }
    17781793
Note: See TracChangeset for help on using the changeset viewer.