Skip to content

Commit

Permalink
added rlm_protobuf module
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Nov 3, 2011
1 parent a67f3d4 commit 310873b
Show file tree
Hide file tree
Showing 5 changed files with 5,671 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/modules/rlm_protobuf/Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# $Id$
#

TARGET = @targetname@
SRCS = rlm_protobuf.c vsa.pb-c.c
HEADERS = vsa.pb-c.h
RLM_LIBS = @protobuf_ldflags@
RLM_CFLAGS = @protobuf_cflags@
RLM_UTILS = vsa.pb-c.h vsa.pb-c.c

include ../rules.mak

vsa.pb-c.c vsa.pb-c.h: vsa.proto
protoc-c --c_out . vsa.proto

$(LT_OBJS): $(HEADERS)
Loading

1 comment on commit 310873b

@alandekok
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "static curl" variables belong in the module configuration. That allows multiple versions of the protobuf module, each pointing to a different server.

With the new API in the "master" branch, this is pretty easy.

Also, there's no need to include the "configure" script. We can (and will) regenerate that.

Over all, though, it looks interesting. Protocol buffers have a lot of utility.

Please sign in to comment.